mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-13 13:17:43 +03:00
mount: simplify de-serialization of control PID a bit
This commit is contained in:
parent
2c09fb818f
commit
3f459cd96e
@ -1210,12 +1210,10 @@ static int mount_deserialize_item(Unit *u, const char *key, const char *value, F
|
||||
log_unit_debug(u, "Failed to parse n-retry-umount value: %s", value);
|
||||
|
||||
} else if (streq(key, "control-pid")) {
|
||||
pid_t pid;
|
||||
|
||||
if (parse_pid(value, &pid) < 0)
|
||||
if (parse_pid(value, &m->control_pid) < 0)
|
||||
log_unit_debug(u, "Failed to parse control-pid value: %s", value);
|
||||
else
|
||||
m->control_pid = pid;
|
||||
|
||||
} else if (streq(key, "control-command")) {
|
||||
MountExecCommand id;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user