diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-10-05 16:43:08 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-10-05 21:41:05 +0200 |
commit | c250bf671b89768ed27984defe9b5af262618e42 (patch) | |
tree | 8b53418c8d4dfb2f8582ef30f387acbba181cf48 /src/basic/process-util.h | |
parent | * hack around deficiencies in prctl() PR_SET_MM_* (diff) | |
download | systemd-c250bf671b89768ed27984defe9b5af262618e42.tar.xz systemd-c250bf671b89768ed27984defe9b5af262618e42.zip |
core/dbus-execute: fix parsing CPUScheduling* and Nice for transient services
Fixes #10290.
Diffstat (limited to 'src/basic/process-util.h')
-rw-r--r-- | src/basic/process-util.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/basic/process-util.h b/src/basic/process-util.h index 7ef45dc92b..00b07517e6 100644 --- a/src/basic/process-util.h +++ b/src/basic/process-util.h @@ -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); |