Skip to content

Instantly share code, notes, and snippets.

@bnoordhuis
Created August 15, 2012 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bnoordhuis/067bd9cb6f32c704e095 to your computer and use it in GitHub Desktop.
Save bnoordhuis/067bd9cb6f32c704e095 to your computer and use it in GitHub Desktop.
handle pipe2() EINVAL
diff --git a/deps/uv/src/unix/process.c b/deps/uv/src/unix/process.c
index 4d54e04..d6dfea2 100644
--- a/deps/uv/src/unix/process.c
+++ b/deps/uv/src/unix/process.c
@@ -99,7 +99,7 @@ int uv__make_pipe(int fds[2], int flags) {
if (uv__pipe2(fds, flags | UV__O_CLOEXEC) == 0)
return 0;
- if (errno != ENOSYS)
+ if (errno != ENOSYS && errno != EINVAL)
return -1;
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment