mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
core: remove duplicate serialization of cpu_sched_reset_on_fork
`c->cpu_sched_reset_on_fork` is serialized using `exec-context-cpu-sched-reset-on-fork` and `exec-context-cpu-scheduling-reset-on-fork`. Let's keep only the second one, to serialize the value only if `cpu_sched_set` is true.
This commit is contained in:
parent
4094130b6f
commit
532de87f74
@ -1877,10 +1877,6 @@ static int exec_context_serialize(const ExecContext *c, FILE *f) {
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
r = serialize_bool_elide(f, "exec-context-cpu-sched-reset-on-fork", c->cpu_sched_reset_on_fork);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
r = serialize_bool(f, "exec-context-ignore-sigpipe", c->ignore_sigpipe);
|
||||
if (r < 0)
|
||||
return r;
|
||||
@ -2774,11 +2770,6 @@ static int exec_context_deserialize(ExecContext *c, FILE *f) {
|
||||
if (r < 0)
|
||||
return r;
|
||||
c->same_pgrp = r;
|
||||
} else if ((val = startswith(l, "exec-context-cpu-sched-reset-on-fork="))) {
|
||||
r = parse_boolean(val);
|
||||
if (r < 0)
|
||||
return r;
|
||||
c->cpu_sched_reset_on_fork = r;
|
||||
} else if ((val = startswith(l, "exec-context-non-blocking="))) {
|
||||
r = parse_boolean(val);
|
||||
if (r < 0)
|
||||
|
@ -31,7 +31,6 @@ exec-context-protect-home=
|
||||
exec-context-protect-system=
|
||||
exec-context-mount-api-vfs=
|
||||
exec-context-same-pgrp=
|
||||
exec-context-cpu-sched-reset-on-fork=
|
||||
exec-context-non-blocking=
|
||||
exec-context-ignore-sigpipe=
|
||||
exec-context-memory-deny-write-execute=
|
||||
|
Loading…
Reference in New Issue
Block a user