-
-
Save bnoordhuis/067bd9cb6f32c704e095 to your computer and use it in GitHub Desktop.
handle pipe2() EINVAL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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