Skip to content

Commit 5432a1d

Browse files
piscisaureusisaacs
authored andcommitted
process_wrap: set duplex flags when creating a pipe
1 parent 54a4f99 commit 5432a1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/process_wrap.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ class ProcessWrap : public HandleWrap {
106106
if (type->Equals(String::NewSymbol("ignore"))) {
107107
options->stdio[i].flags = UV_IGNORE;
108108
} else if (type->Equals(String::NewSymbol("pipe"))) {
109-
options->stdio[i].flags = UV_CREATE_PIPE;
109+
options->stdio[i].flags = static_cast<uv_stdio_flags>(
110+
UV_CREATE_PIPE | UV_READABLE_PIPE | UV_WRITABLE_PIPE);
110111
options->stdio[i].data.stream = reinterpret_cast<uv_stream_t*>(
111112
PipeWrap::Unwrap(stdio
112113
->Get(String::NewSymbol("handle")).As<Object>())->UVHandle());

0 commit comments

Comments
 (0)