DORMANTno replies

[PATCH] Reinstate SIGCHILD handler, signals on Solaris are reset when handled

From: Andrew Wason <hidden>
Date: 2016-06-15 22:45:07
Subsystem: the rest · Maintainer: Linus Torvalds

git-daemon only reaps the first forked child on Solaris. Solaris signal handlers
have to be reset each time the signal is handled.


Signed-off-by: Andrew Wason <redacted>
---
 daemon.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/daemon.c b/daemon.c
index 4540e8d..47ad8ab 100644
--- a/daemon.c
+++ b/daemon.c
@@ -794,6 +794,8 @@ static void child_handler(int signo)
 		}
 		break;
 	}
+	/* Signal handlers must be reinstated on Solaris */
+	signal(SIGCHLD, child_handler);
 }
 
 static int set_reuse_addr(int sockfd)
-- 
1.5.6.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help