diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-05-25 03:52:47 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-05-31 04:09:41 +0200 |
commit | de5e6038ca0e826bc281b4957b4ed0f34ef366ea (patch) | |
tree | 48beaeec635ea7238ee0d63963e86d0287598ad5 /src/core | |
parent | hwdb: consolidate multiple razer evdev sections (diff) | |
download | systemd-de5e6038ca0e826bc281b4957b4ed0f34ef366ea.tar.xz systemd-de5e6038ca0e826bc281b4957b4ed0f34ef366ea.zip |
load-fragment: setting empty string to Nice= resets the previous assignments
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/load-fragment.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index 0bc162ad1d..d2ce73f726 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -490,6 +490,11 @@ int config_parse_exec_nice( assert(rvalue); assert(data); + if (isempty(rvalue)) { + c->nice_set = false; + return 0; + } + r = parse_nice(rvalue, &priority); if (r < 0) { if (r == -ERANGE) |