summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2012-06-11 16:50:07 +0200
committerisaacs <i@izs.me>2012-06-11 08:13:36 -0700
commit5432a1d985df7df57db4106af72dc880d40ea497 (patch)
tree10653c1ae2ae6d80999a22d1730dd48618fc36db /src
parent54a4f99c4e0f3b6b3a0a5182c29051761a50bb2b (diff)
downloadnodejs-5432a1d985df7df57db4106af72dc880d40ea497.tar.gz
nodejs-5432a1d985df7df57db4106af72dc880d40ea497.tar.bz2
nodejs-5432a1d985df7df57db4106af72dc880d40ea497.zip
process_wrap: set duplex flags when creating a pipe
Diffstat (limited to 'src')
-rw-r--r--src/process_wrap.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/process_wrap.cc b/src/process_wrap.cc
index 194c53fe7..b156692ac 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_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());