git-daemon: SysV needs the signal handler reinstated.
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>
Stephen R. van den Berg committed
Aug 12, 2008 at 21:36 UTC
bd7b371e9c2aeb0aaf228dc1655e8d04fca6f797
1 file changed
+1
daemon.c
+1
@@ -794,6 +794,7 @@ static void child_handler(int signo)
794
}
795
break;
796
}
797
+ signal(SIGCHLD, child_handler);
798
}
799
800
static int set_reuse_addr(int sockfd)