Thread (18 messages) 18 messages, 2 authors, 2016-06-15

Re: [PATCH 07/15] daemon: use run-command api for async serving

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:49:50

Erik Faye-Lund wrote:
quoted hunk ↗ jump to hunk
--- a/daemon.c
+++ b/daemon.c
[...]
quoted hunk ↗ jump to hunk
@@ -671,18 +658,26 @@ static void check_dead_children(void)
 	int status;
 	pid_t pid;
 
-	while ((pid = waitpid(-1, &status, WNOHANG)) > 0) {
+	struct child **cradle, *blanket;
+	for (cradle = &firstborn; (blanket = *cradle);)
+		if ((pid = waitpid(blanket->cld.pid, &status, WNOHANG)) > 1) {
What is this change (> 0 → > 1) about?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help