Git development
 help / color / mirror / Atom feed
* [PATCH] git-daemon: SysV needs the signal handler reinstated.
@ 2008-08-12 19:36 Stephen R. van den Berg
  2008-08-12 21:25 ` [PATCH] git-daemon: Simplify child management and associated logging by Stephen R. van den Berg
  0 siblings, 1 reply; 17+ messages in thread
From: Stephen R. van den Berg @ 2008-08-12 19:36 UTC (permalink / raw)
  To: git

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>
---

 daemon.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/daemon.c b/daemon.c
index 4540e8d..1c00305 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)
@@ -947,7 +948,7 @@ static int service_loop(int socknum, int *socklist)
 	pfd[socknum].fd = child_handler_pipe[0];
 	pfd[socknum].events = POLLIN;
 
-	signal(SIGCHLD, child_handler);
+	child_handler(0);
 
 	for (;;) {
 		int i;

^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2008-08-13 19:30 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-12 19:36 [PATCH] git-daemon: SysV needs the signal handler reinstated Stephen R. van den Berg
2008-08-12 21:25 ` [PATCH] git-daemon: Simplify child management and associated logging by Stephen R. van den Berg
2008-08-12 22:05   ` Junio C Hamano
2008-08-12 22:56     ` Stephen R. van den Berg
2008-08-12 23:52       ` Stephen R. van den Berg
2008-08-13  0:03         ` Stephen R. van den Berg
2008-08-13  0:07         ` Marcus Griep
2008-08-13  0:20       ` Junio C Hamano
2008-08-13  7:36         ` Stephen R. van den Berg
2008-08-13  8:23       ` Stephen R. van den Berg
2008-08-13 19:28       ` Junio C Hamano
2008-08-12 22:32   ` Alex Riesen
2008-08-12 23:12     ` Stephen R. van den Berg
2008-08-13  6:20       ` Alex Riesen
2008-08-13  7:21         ` Stephen R. van den Berg
2008-08-13  6:41   ` Andreas Ericsson
2008-08-13  7:18     ` Alex Riesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox