This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

process_wrap: set duplex flags when creating a pipe

  • Loading branch information...
piscisaureus authored and isaacs committed Jun 11, 2012
1 parent 54a4f99 commit 5432a1d985df7df57db4106af72dc880d40ea497
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/process_wrap.cc
View
@@ -106,7 +106,8 @@ class ProcessWrap : public HandleWrap {
if (type->Equals(String::NewSymbol("ignore"))) {
options->stdio[i].flags = UV_IGNORE;
} else if (type->Equals(String::NewSymbol("pipe"))) {
- options->stdio[i].flags = UV_CREATE_PIPE;
+ options->stdio[i].flags = static_cast<uv_stdio_flags>(
+ UV_CREATE_PIPE | UV_READABLE_PIPE | UV_WRITABLE_PIPE);
options->stdio[i].data.stream = reinterpret_cast<uv_stream_t*>(
PipeWrap::Unwrap(stdio
->Get(String::NewSymbol("handle")).As<Object>())->UVHandle());

0 comments on commit 5432a1d

Please sign in to comment.