diff options
author | Stephen R. van den Berg <srb@cuci.nl> | 2008-08-14 20:02:20 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-08-17 17:43:53 -0700 |
commit | 695605b5080e1957bd9dab1fed35a7fee9814297 (patch) | |
tree | 431e52d4942526f47a76a02237ceadff2a6b2932 /copy.c | |
parent | 6a992e9e1da08af3e36ab90d5f5b7ee8077630ce (diff) | |
download | git-695605b5080e1957bd9dab1fed35a7fee9814297.tar.gz git-695605b5080e1957bd9dab1fed35a7fee9814297.tar.xz |
git-daemon: Simplify dead-children reaping logic
Move almost all code out of the child_handler() into check_dead_children().
The fact that systemcalls get interrupted by signals allows us to
make the SIGCHLD signal handler almost a no-op by simply running
check_dead_children() right before waiting on poll().
In case some systems do not interrupt systemcalls upon signal receipt,
all zombies will eventually be collected before the next poll() cycle.
Signed-off-by: Stephen R. van den Berg <srb@cuci.nl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'copy.c')
0 files changed, 0 insertions, 0 deletions