diff --git a/deps/uv/src/unix/process.c b/deps/uv/src/unix/process.c index c43660d8001..a76864500c0 100644 --- a/deps/uv/src/unix/process.c +++ b/deps/uv/src/unix/process.c @@ -236,13 +236,8 @@ int uv_spawn(uv_loop_t* loop, uv_process_t* process, } while (status == -1 && (errno == EINTR || errno == ENOMEM)); + assert((status == 1) && "poll() on pipe read end failed"); uv__close(signal_pipe[0]); - uv__close(signal_pipe[1]); - - assert((status == 1) - && "poll() on pipe read end failed"); - assert((pfd.revents & POLLHUP) == POLLHUP - && "no POLLHUP on pipe read end"); #endif process->pid = pid; diff --git a/deps/uv/uv.gyp b/deps/uv/uv.gyp index a4298377189..aee6c283828 100644 --- a/deps/uv/uv.gyp +++ b/deps/uv/uv.gyp @@ -215,6 +215,7 @@ ], 'direct_dependent_settings': { 'libraries': [ + '-lkstat', '-lsocket', '-lnsl', ],