diff options
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) { |