unix: always set CLOEXEC flag for child process stdio FDs
This commit is contained in:
parent
2c983fb994
commit
5d5688f241
@ -237,6 +237,8 @@ static void uv__process_child_init(uv_process_options_t options,
|
||||
if (i != use_fd) {
|
||||
dup2(use_fd, i);
|
||||
close(use_fd);
|
||||
} else {
|
||||
uv__cloexec(use_fd, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user