Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-10-05 23:33:05 +0400
committerRyan Dahl <ry@tinyclouds.org>2011-10-07 09:31:57 +0400
commit471c5701c30ae0d8abfb2dbd83bd176cf18cb8e2 (patch)
tree7dc01b1fdf361c1832a481ec85f88127396aec25 /src/pipe_wrap.cc
parentf018be3b5f6dad3a92cf41706ad5ed74dc221f6e (diff)
uv_write2 uv_read2_start binding
Diffstat (limited to 'src/pipe_wrap.cc')
-rw-r--r--src/pipe_wrap.cc8
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);