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-08-31 12:53:01 +0400
committerRyan Dahl <ry@tinyclouds.org>2011-08-31 12:53:30 +0400
commit21cc4c4985fdf40cc128cd88cfdc02fd49e33b26 (patch)
treefbda524d1b1a9f12b6b271574ac3383d27eacb7e /src/pipe_wrap.cc
parent6f606838025c4e87701f360135f1ae72e968dc4c (diff)
Upgrade libuv to ea4271f
Required adding uv_default_loop() in many places.
Diffstat (limited to 'src/pipe_wrap.cc')
-rw-r--r--src/pipe_wrap.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc
index e6faf55da22..247d715df64 100644
--- a/src/pipe_wrap.cc
+++ b/src/pipe_wrap.cc
@@ -93,7 +93,7 @@ Handle<Value> PipeWrap::New(const Arguments& args) {
PipeWrap::PipeWrap(Handle<Object> object) : StreamWrap(object,
(uv_stream_t*) &handle_) {
- int r = uv_pipe_init(&handle_);
+ int r = uv_pipe_init(uv_default_loop(), &handle_);
assert(r == 0); // How do we proxy this error up to javascript?
// Suggestion: uv_pipe_init() returns void.
handle_.data = reinterpret_cast<void*>(this);
@@ -111,7 +111,7 @@ Handle<Value> PipeWrap::Bind(const Arguments& args) {
int r = uv_pipe_bind(&wrap->handle_, *name);
// Error starting the pipe.
- if (r) SetErrno(uv_last_error().code);
+ if (r) SetErrno(uv_last_error(uv_default_loop()).code);
return scope.Close(Integer::New(r));
}
@@ -127,7 +127,7 @@ Handle<Value> PipeWrap::Listen(const Arguments& args) {
int r = uv_listen((uv_stream_t*)&wrap->handle_, backlog, OnConnection);
// Error starting the pipe.
- if (r) SetErrno(uv_last_error().code);
+ if (r) SetErrno(uv_last_error(uv_default_loop()).code);
return scope.Close(Integer::New(r));
}
@@ -180,7 +180,7 @@ void PipeWrap::AfterConnect(uv_connect_t* req, int status) {
assert(wrap->object_.IsEmpty() == false);
if (status) {
- SetErrno(uv_last_error().code);
+ SetErrno(uv_last_error(uv_default_loop()).code);
}
Local<Value> argv[3] = {
@@ -212,7 +212,7 @@ Handle<Value> PipeWrap::Connect(const Arguments& args) {
req_wrap->Dispatched();
if (r) {
- SetErrno(uv_last_error().code);
+ SetErrno(uv_last_error(uv_default_loop()).code);
delete req_wrap;
return scope.Close(v8::Null());
} else {