diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-07-02 15:22:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-02 15:22:14 -0700 |
commit | b1e67dfe31c6911820eac753f6461e1c9a00f26c (patch) | |
tree | 253c67693fe1b4897d92b90b994d3ae60c0ddecf /src/basic/terminal-util.c | |
parent | e71af7931616601159f50c9029efc07ec347d73b (diff) | |
parent | 913f38e4402ad19529b13fdb56db77eaa2b9f30a (diff) |
Merge pull request #3641 from 0xAX/unset-cloexec-for-stdfs
basic/fd-util: introduce stdio_unset_cloexec() function
Diffstat (limited to 'src/basic/terminal-util.c')
-rw-r--r-- | src/basic/terminal-util.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/basic/terminal-util.c b/src/basic/terminal-util.c index d8cca55378..df56d85317 100644 --- a/src/basic/terminal-util.c +++ b/src/basic/terminal-util.c @@ -888,9 +888,7 @@ int make_stdio(int fd) { /* Explicitly unset O_CLOEXEC, since if fd was < 3, then * dup2() was a NOP and the bit hence possibly set. */ - fd_cloexec(STDIN_FILENO, false); - fd_cloexec(STDOUT_FILENO, false); - fd_cloexec(STDERR_FILENO, false); + stdio_unset_cloexec(); return 0; } |