libuv/src
Ben Noordhuis 5c00a0ee33 unix: fix SIGCHLD waitpid() race in process.c
Before this commit, multiple event loops raced with each other when a
SIGCHLD signal was received.  More concretely, it was possible for
event loop A to consume waitpid() events that should have been
delivered to event loop B.

This commit addresses that by doing a linear scan over the list of
child processes.  An O(n) scan is not terribly efficient but the
actual performance impact is not measurable in a benchmark that spawns
rounds of several thousands instances of /bin/false.  For the time
being, this patch will suffice; we can always revisit it later.

Fixes #887.
2013-10-09 11:18:13 +02:00
..
unix unix: fix SIGCHLD waitpid() race in process.c 2013-10-09 11:18:13 +02:00
win windows: remove duplicate check in stream.c 2013-09-25 23:07:10 +02:00
fs-poll.c unix, windows: return error codes directly 2013-07-07 09:51:00 +02:00
inet.c unix, windows: return error codes directly 2013-07-07 09:51:00 +02:00
queue.h windows: omit stdint.h, fix msvc 2008 build error 2013-08-20 14:06:35 +02:00
uv-common.c include: merge uv_udp_send and uv_udp_send6 2013-09-04 03:17:29 +02:00
uv-common.h include: uv_udp_send{6} now takes sockaddr_in* 2013-09-01 08:02:20 +02:00
version.c Now working on v0.11.14 2013-09-04 14:45:22 +02:00