summaryrefslogtreecommitdiff
path: root/src/pipe_wrap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/pipe_wrap.cc')
-rw-r--r--src/pipe_wrap.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc
index 7ec5bdf15b..f3a88a2ecc 100644
--- a/src/pipe_wrap.cc
+++ b/src/pipe_wrap.cc
@@ -204,6 +204,7 @@ void PipeWrap::Open(const FunctionCallbackInfo<Value>& args) {
int fd = args[0]->Int32Value();
int err = uv_pipe_open(&wrap->handle_, fd);
+ wrap->set_fd(fd);
if (err != 0)
env->isolate()->ThrowException(UVException(err, "uv_pipe_open"));