Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
sunos: fix uv_spawn()
Browse files Browse the repository at this point in the history
SunOS does not set POLLHUP when the read end of a pipe is closed.
  • Loading branch information
bnoordhuis committed Oct 10, 2011
1 parent 7321695 commit f7f518a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/unix/process.c
Expand Up @@ -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;
Expand Down

0 comments on commit f7f518a

Please sign in to comment.