tree-wide: Migrate to pidref_safe_fork()
Let's migrate all remaining callers of safe_fork() to pidref_safe_fork() and get rid of safe_fork().
This commit is contained in:
committed by
DaanDeMeyer
parent
e6703a9aa4
commit
52ecf376fa
@@ -1452,7 +1452,7 @@ int mount_fd_clone(int mount_fd, bool recursive, int *replacement_fd) {
|
||||
return log_debug_errno(errno, "Failed to open pipe: %m");
|
||||
|
||||
/* Fork a child. Note that we set FORK_NEW_MOUNTNS|FORK_MOUNTNS_SLAVE here, i.e. get a new mount namespace */
|
||||
r = safe_fork_full(
|
||||
r = pidref_safe_fork_full(
|
||||
"(sd-clonemnt)",
|
||||
/* stdio_fds= */ NULL,
|
||||
(int[]) { mount_fd, transfer_fds[1], errno_pipe_fds[1] }, 3,
|
||||
|
||||
Reference in New Issue
Block a user