mirror of
https://github.com/systemd/systemd.git
synced 2025-01-27 10:54:11 +08:00
load-fragment: setting empty string to Nice= resets the previous assignments
This commit is contained in:
parent
18944130b0
commit
de5e6038ca
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user