r849 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Sun Aug 20 16:53:26 CEST 2006


Author: phk
Date: 2006-08-20 16:53:26 +0200 (Sun, 20 Aug 2006)
New Revision: 849

Modified:
   trunk/varnish-cache/bin/varnishd/mgt_child.c
Log:
pid -1 is not our child


Modified: trunk/varnish-cache/bin/varnishd/mgt_child.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_child.c	2006-08-20 14:53:12 UTC (rev 848)
+++ trunk/varnish-cache/bin/varnishd/mgt_child.c	2006-08-20 14:53:26 UTC (rev 849)
@@ -217,7 +217,7 @@
 	ev_poker = NULL;
 
 	r = wait4(-1, &status, WNOHANG, NULL);
-	if (r != child_pid) {
+	if (r != child_pid || r == -1) {
 		fprintf(stderr, "Unknown child died pid=%d status=0x%x\n",
 		    r, status);
 		return (0);




More information about the varnish-commit mailing list