uv: fix build on systems that don't have pipe2()

This is libuv commit 2fbcbe9, cherry-picked for node.
This commit is contained in:
Ben Noordhuis 2011-08-05 17:16:43 +02:00
parent ae77b4d553
commit 69ce415d38

View File

@ -2297,10 +2297,10 @@ int uv_spawn(uv_process_t* process, uv_process_options_t options) {
if (pipe(signal_pipe) < 0) {
goto error;
}
uv__cloexec(signal_pipe[0]);
uv__cloexec(signal_pipe[1]);
uv__nonblock(signal_pipe[0]);
uv__nonblock(signal_pipe[1]);
uv__cloexec(signal_pipe[0], 1);
uv__cloexec(signal_pipe[1], 1);
uv__nonblock(signal_pipe[0], 1);
uv__nonblock(signal_pipe[1], 1);
#endif
pid = fork();