r1810 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Wed Aug 8 10:49:11 CEST 2007


Author: phk
Date: 2007-08-08 10:49:11 +0200 (Wed, 08 Aug 2007)
New Revision: 1810

Modified:
   trunk/varnish-cache/bin/varnishd/mgt_child.c
Log:
Elminiate a spurious message when sigchild looses a race to popen(2).

This fixed #143



Modified: trunk/varnish-cache/bin/varnishd/mgt_child.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_child.c	2007-08-07 10:27:34 UTC (rev 1809)
+++ trunk/varnish-cache/bin/varnishd/mgt_child.c	2007-08-08 08:49:11 UTC (rev 1810)
@@ -305,6 +305,8 @@
 	ev_poker = NULL;
 
 	r = wait4(-1, &status, WNOHANG, NULL);
+	if (r == 0)
+		return (0);
 	if (r != child_pid || r == -1) {
 		fprintf(stderr, "Unknown child died pid=%d status=0x%x\n",
 		    r, status);




More information about the varnish-commit mailing list