static int mount_clean(Unit *u, ExecCleanMask mask) {
_cleanup_strv_free_ char **l = NULL;
Mount *m = MOUNT(u);
- pid_t pid;
int r;
assert(m);
if (r < 0)
goto fail;
- r = unit_fork_and_watch_rm_rf(u, l, &pid);
- if (r < 0)
- goto fail;
-
- r = pidref_set_pid(&m->control_pid, pid);
+ r = unit_fork_and_watch_rm_rf(u, l, &m->control_pid);
if (r < 0)
goto fail;