Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. diff --git a/src/unix/process.c b/src/unix/process.c
  2. index 9842710d..d6c23c44 100644
  3. --- a/src/unix/process.c
  4. +++ b/src/unix/process.c
  5. @@ -243,8 +243,12 @@ static int uv__process_open_stream(uv_stdio_container_t* container,
  6. flags = UV_STREAM_READABLE | UV_STREAM_WRITABLE;
  7. else if (writable)
  8. flags = UV_STREAM_WRITABLE;
  9. - else
  10. + else {
  11. flags = UV_STREAM_READABLE;
  12. + if (container->flags & UV_WRITABLE_PIPE)
  13. + flags |= UV_STREAM_WRITABLE;
  14. + }
  15. +
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement