joyent/libuv — pull request #1053 by indutny (2013-12-22 10:46:48+00:00)
Title: pipe: allow queueing pending handles

Introduce `uv_pipe_has_pending_handles()`, may be called in `read2_cb`
to accept all pending incoming handles on IPC pipe:

do
uv_accept(...);
while (uv_pipe_has_pending_handles(pipe));

/cc @saghul @piscisaureus