Browse Source

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

This is libuv commit 2fbcbe9, cherry-picked for node.
v0.7.4-release
Ben Noordhuis 14 years ago
parent
commit
69ce415d38
  1. 8
      deps/uv/src/uv-unix.c

8
deps/uv/src/uv-unix.c

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

Loading…
Cancel
Save