summaryrefslogtreecommitdiff
path: root/src/shared/dissect-image.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-02-07 18:19:55 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-02-21 07:37:51 +0900
commit911f8f0183ef723737de3661b1dd042c7b2fcb6e (patch)
tree3cf14cfced68c9a8b1f25a8079c40d07945b8ca5 /src/shared/dissect-image.c
parenta324a8958b06b577f1a82a3a3d5f696add2b1fb4 (diff)
downloadsystemd-911f8f0183ef723737de3661b1dd042c7b2fcb6e.tar.gz
process-util: rename FORK_NULL_STDIO -> FORK_REARRANGE_STDIO
And make safe_fork_full() takes fds to be assigned to stdio.
Diffstat (limited to 'src/shared/dissect-image.c')
-rw-r--r--src/shared/dissect-image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c
index 9a4bac99a1..ce37dd31ce 100644
--- a/src/shared/dissect-image.c
+++ b/src/shared/dissect-image.c
@@ -1436,8 +1436,9 @@ static int run_fsck(int node_fd, const char *fstype) {
r = safe_fork_full(
"(fsck)",
+ NULL,
&node_fd, 1, /* Leave the node fd open */
- FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_RLIMIT_NOFILE_SAFE|FORK_DEATHSIG|FORK_NULL_STDIO|FORK_CLOEXEC_OFF,
+ FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_RLIMIT_NOFILE_SAFE|FORK_DEATHSIG|FORK_REARRANGE_STDIO|FORK_CLOEXEC_OFF,
&pid);
if (r < 0)
return log_debug_errno(r, "Failed to fork off fsck: %m");