summaryrefslogtreecommitdiff
path: root/src/basic/terminal-util.c
diff options
context:
space:
mode:
authorAlexander Kuleshov <kuleshovmail@gmail.com>2016-07-02 23:42:01 +0600
committerAlexander Kuleshov <kuleshovmail@gmail.com>2016-07-02 23:42:01 +0600
commit913f38e4402ad19529b13fdb56db77eaa2b9f30a (patch)
treec97ecaa404ee1f4ced036d4f8a54e1b7d2a2efb2 /src/basic/terminal-util.c
parent3b9a1d87cc468cfcd6f9ddfd98ac389fa5840f10 (diff)
treewide: use stdio_unset_cloexec() function
Diffstat (limited to 'src/basic/terminal-util.c')
-rw-r--r--src/basic/terminal-util.c4
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;
}