diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/mount.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/mount.c b/src/core/mount.c index 586151bf67..549d7dbf98 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -885,7 +885,7 @@ static void mount_dump(Unit *u, FILE *f, const char *prefix) { cgroup_context_dump(UNIT(m), f, prefix); } -static int mount_spawn(Mount *m, ExecCommand *c, pid_t *_pid) { +static int mount_spawn(Mount *m, ExecCommand *c, pid_t *ret_pid) { _cleanup_(exec_params_clear) ExecParameters exec_params = { .flags = EXEC_APPLY_SANDBOXING|EXEC_APPLY_CHROOT|EXEC_APPLY_TTY_STDIN, @@ -899,7 +899,7 @@ static int mount_spawn(Mount *m, ExecCommand *c, pid_t *_pid) { assert(m); assert(c); - assert(_pid); + assert(ret_pid); r = unit_prepare_exec(UNIT(m)); if (r < 0) @@ -927,8 +927,7 @@ static int mount_spawn(Mount *m, ExecCommand *c, pid_t *_pid) { if (r < 0) return r; - *_pid = pid; - + *ret_pid = pid; return 0; } |