diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-10-05 23:33:05 +0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-10-07 09:31:57 +0400 |
commit | 471c5701c30ae0d8abfb2dbd83bd176cf18cb8e2 (patch) | |
tree | 7dc01b1fdf361c1832a481ec85f88127396aec25 /src/pipe_wrap.cc | |
parent | f018be3b5f6dad3a92cf41706ad5ed74dc221f6e (diff) |
uv_write2 uv_read2_start binding
Diffstat (limited to 'src/pipe_wrap.cc')
-rw-r--r-- | src/pipe_wrap.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc index c4f965d65fd..1bf59bd2de9 100644 --- a/src/pipe_wrap.cc +++ b/src/pipe_wrap.cc @@ -86,16 +86,16 @@ Handle<Value> PipeWrap::New(const Arguments& args) { assert(args.IsConstructCall()); HandleScope scope; - PipeWrap* wrap = new PipeWrap(args.This()); + PipeWrap* wrap = new PipeWrap(args.This(), args[0]->IsTrue()); assert(wrap); return scope.Close(args.This()); } -PipeWrap::PipeWrap(Handle<Object> object) : StreamWrap(object, - (uv_stream_t*) &handle_) { - int r = uv_pipe_init(uv_default_loop(), &handle_, 0); +PipeWrap::PipeWrap(Handle<Object> object, bool ipc) + : StreamWrap(object, (uv_stream_t*) &handle_) { + int r = uv_pipe_init(uv_default_loop(), &handle_, ipc); assert(r == 0); // How do we proxy this error up to javascript? // Suggestion: uv_pipe_init() returns void. handle_.data = reinterpret_cast<void*>(this); |