core/dbus-execute: fix parsing CPUScheduling* and Nice for transient services

Fixes #10290.
This commit is contained in:
Yu Watanabe
2018-10-05 21:41:05 +02:00
committed by Lennart Poettering
parent 14ee72b7d8
commit c250bf671b
2 changed files with 66 additions and 19 deletions
-7
View File
@@ -134,13 +134,6 @@ static inline bool pid_is_valid(pid_t p) {
return p > 0;
}
static inline int sched_policy_to_string_alloc_with_check(int n, char **s) {
if (!sched_policy_is_valid(n))
return -EINVAL;
return sched_policy_to_string_alloc(n, s);
}
int ioprio_parse_priority(const char *s, int *ret);
pid_t getpid_cached(void);