treewide: use stdio_unset_cloexec() function

This commit is contained in:
Alexander Kuleshov
2016-07-02 23:42:01 +06:00
parent 3b9a1d87cc
commit 913f38e440
4 changed files with 5 additions and 15 deletions
+1 -3
View File
@@ -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;
}