util: explicitly turn of O_CLOEXEC for stdin/stdout/stderr
This commit is contained in:
parent
ccaa61498c
commit
7862f62de3
|
@ -2947,6 +2947,10 @@ int make_stdio(int fd) {
|
|||
if (r < 0 || s < 0 || t < 0)
|
||||
return -errno;
|
||||
|
||||
fd_cloexec(STDIN_FILENO, false);
|
||||
fd_cloexec(STDOUT_FILENO, false);
|
||||
fd_cloexec(STDERR_FILENO, false);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue