From 5432a1d985df7df57db4106af72dc880d40ea497 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Mon, 11 Jun 2012 16:50:07 +0200 Subject: [PATCH] process_wrap: set duplex flags when creating a pipe --- src/process_wrap.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/process_wrap.cc b/src/process_wrap.cc index 194c53fe77..b156692ac0 100644 --- a/src/process_wrap.cc +++ b/src/process_wrap.cc @@ -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_CREATE_PIPE | UV_READABLE_PIPE | UV_WRITABLE_PIPE); options->stdio[i].data.stream = reinterpret_cast( PipeWrap::Unwrap(stdio ->Get(String::NewSymbol("handle")).As())->UVHandle());