diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-02-07 18:19:55 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-02-21 07:37:51 +0900 |
commit | 911f8f0183ef723737de3661b1dd042c7b2fcb6e (patch) | |
tree | 3cf14cfced68c9a8b1f25a8079c40d07945b8ca5 /src/home | |
parent | a324a8958b06b577f1a82a3a3d5f696add2b1fb4 (diff) | |
download | systemd-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/home')
-rw-r--r-- | src/home/homed-home.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/home/homed-home.c b/src/home/homed-home.c index e6b7740600..8b4a81d7e8 100644 --- a/src/home/homed-home.c +++ b/src/home/homed-home.c @@ -1180,6 +1180,7 @@ static int home_start_work(Home *h, const char *verb, UserRecord *hr, UserRecord return -errno; r = safe_fork_full("(sd-homework)", + NULL, (int[]) { stdin_fd, stdout_fd }, 2, FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_DEATHSIG|FORK_LOG|FORK_REOPEN_LOG, &pid); if (r < 0) |