mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
core: actually set the CPU scheduling policy when deserializing it
This commit is contained in:
@@ -2968,9 +2968,9 @@ static int exec_context_deserialize(ExecContext *c, FILE *f) {
|
||||
return r;
|
||||
c->ioprio_set = true;
|
||||
} else if ((val = startswith(l, "exec-context-cpu-scheduling-policy="))) {
|
||||
r = sched_policy_from_string(val);
|
||||
if (r < 0)
|
||||
return r;
|
||||
c->cpu_sched_policy = sched_policy_from_string(val);
|
||||
if (c->cpu_sched_policy < 0)
|
||||
return -EINVAL;
|
||||
c->cpu_sched_set = true;
|
||||
} else if ((val = startswith(l, "exec-context-cpu-scheduling-priority="))) {
|
||||
r = safe_atoi(val, &c->cpu_sched_priority);
|
||||
|
||||
Reference in New Issue
Block a user