diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-02-07 10:19:55 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-02-20 23:37:51 +0100 |
commit | 911f8f0183ef723737de3661b1dd042c7b2fcb6e (patch) | |
tree | 3cf14cfced68c9a8b1f25a8079c40d07945b8ca5 /src/resolve | |
parent | meson: adjust whitespace handling in jinja2 rendering (diff) | |
download | systemd-911f8f0183ef723737de3661b1dd042c7b2fcb6e.tar.xz systemd-911f8f0183ef723737de3661b1dd042c7b2fcb6e.zip |
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/resolve')
-rw-r--r-- | src/resolve/test-resolved-stream.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resolve/test-resolved-stream.c b/src/resolve/test-resolved-stream.c index c708eb4da8..d7fe3c42f5 100644 --- a/src/resolve/test-resolved-stream.c +++ b/src/resolve/test-resolved-stream.c @@ -147,8 +147,10 @@ static void *tls_dns_server(void *p) { fd_tls = fd[1]; } - r = safe_fork_full("(test-resolved-stream-tls-openssl)", (int[]) { fd_server, fd_tls }, 2, - FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_DEATHSIG|FORK_LOG|FORK_REOPEN_LOG, &openssl_pid); + r = safe_fork_full("(test-resolved-stream-tls-openssl)", + NULL, + (int[]) { fd_server, fd_tls }, 2, + FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_DEATHSIG|FORK_LOG|FORK_REOPEN_LOG, &openssl_pid); assert_se(r >= 0); if (r == 0) { /* Child */ |