]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/mount.c
core: port over unit_kill_context() to PidRef
[thirdparty/systemd.git] / src / core / mount.c
index 57045f3da4c0980c2ad9e9cc569c9f30871b9ddf..c156a84c1d3b18a99a88dc47a85e0e5afea466c0 100644 (file)
@@ -1036,9 +1036,9 @@ static void mount_enter_signal(Mount *m, MountState state, MountResult f) {
                         UNIT(m),
                         &m->kill_context,
                         state_to_kill_operation(state),
-                        -1,
-                        m->control_pid.pid,
-                        false);
+                        /* main_pid= */ NULL,
+                        &m->control_pid,
+                        /* main_pid_alien= */ false);
         if (r < 0)
                 goto fail;