From f7f518aa7e75bee4880113bb226b87a05f4838ab Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 10 Oct 2011 23:59:54 +0000 Subject: [PATCH] sunos: fix uv_spawn() SunOS does not set POLLHUP when the read end of a pipe is closed. --- src/unix/process.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/unix/process.c b/src/unix/process.c index c43660d8..a7686450 100644 --- a/src/unix/process.c +++ b/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;