We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54a4f99 commit 5432a1dCopy full SHA for 5432a1d
src/process_wrap.cc
@@ -106,7 +106,8 @@ class ProcessWrap : public HandleWrap {
106
if (type->Equals(String::NewSymbol("ignore"))) {
107
options->stdio[i].flags = UV_IGNORE;
108
} else if (type->Equals(String::NewSymbol("pipe"))) {
109
- options->stdio[i].flags = UV_CREATE_PIPE;
+ options->stdio[i].flags = static_cast<uv_stdio_flags>(
110
+ UV_CREATE_PIPE | UV_READABLE_PIPE | UV_WRITABLE_PIPE);
111
options->stdio[i].data.stream = reinterpret_cast<uv_stream_t*>(
112
PipeWrap::Unwrap(stdio
113
->Get(String::NewSymbol("handle")).As<Object>())->UVHandle());
0 commit comments