Code

git-daemon: SysV needs the signal handler reinstated.
authorStephen R. van den Berg <srb@cuci.nl>
Tue, 12 Aug 2008 19:36:13 +0000 (21:36 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Aug 2008 22:41:08 +0000 (15:41 -0700)
Fixes the bug on (amongst others) Solaris that only the first
child ever is reaped.

Signed-off-by: Stephen R. van den Berg <srb@cuci.nl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
daemon.c

index 4540e8df5ab8bc8ff66549144d7db2928e12199b..8dcde73200d1ddbc0dec0dbfdc2f4ff15047abd9 100644 (file)
--- a/daemon.c
+++ b/daemon.c
@@ -794,6 +794,7 @@ static void child_handler(int signo)
                }
                break;
        }
+       signal(SIGCHLD, child_handler);
 }
 
 static int set_reuse_addr(int sockfd)