summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen R. van den Berg <srb@cuci.nl>2008-08-12 19:36:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-08-12 22:41:08 (GMT)
commitbd7b371e9c2aeb0aaf228dc1655e8d04fca6f797 (patch)
tree040e5152d7923ff5126ec6caac3f006c0140d8cd
parent04c6e9e9ca34226db095bbaa1218030f99f0b7c6 (diff)
downloadgit-bd7b371e9c2aeb0aaf228dc1655e8d04fca6f797.zip
git-bd7b371e9c2aeb0aaf228dc1655e8d04fca6f797.tar.gz
git-bd7b371e9c2aeb0aaf228dc1655e8d04fca6f797.tar.bz2
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>
-rw-r--r--daemon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon.c b/daemon.c
index 4540e8d..8dcde73 100644
--- 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)