diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-11-03 15:56:09 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-11-03 16:36:09 +0100 |
commit | 8f03de5323c86f2e7ce0884e169e2c7180938fbd (patch) | |
tree | 83fcdd15e58c113537ce59d1d505030ca9475e6f /src/core/mount.c | |
parent | process-util: rework TAKE_PID() to be side-effect free (diff) | |
download | systemd-8f03de5323c86f2e7ce0884e169e2c7180938fbd.tar.xz systemd-8f03de5323c86f2e7ce0884e169e2c7180938fbd.zip |
tree-wide: port various places to use TAKE_PID()
Diffstat (limited to 'src/core/mount.c')
-rw-r--r-- | src/core/mount.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/mount.c b/src/core/mount.c index c4d7f981c6..321c7986b3 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -236,8 +236,7 @@ static void mount_unwatch_control_pid(Mount *m) { if (m->control_pid <= 0) return; - unit_unwatch_pid(UNIT(m), m->control_pid); - m->control_pid = 0; + unit_unwatch_pid(UNIT(m), TAKE_PID(m->control_pid)); } static void mount_parameters_done(MountParameters *p) { |