Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
uv: fix build on systems that don't have pipe2()
Browse files Browse the repository at this point in the history
This is libuv commit 2fbcbe9, cherry-picked for node.
  • Loading branch information
bnoordhuis committed Aug 5, 2011
1 parent ae77b4d commit 69ce415
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deps/uv/src/uv-unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

2 comments on commit 69ce415

@nickradford
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this include OSX Lion?

@bnoordhuis
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nickradford: Yes. Everything that isn't linux >= 2.6.27, really.

Please sign in to comment.