[3.0] e422c76 Sense of exit-code test was wrong.

Tollef Fog Heen tfheen at varnish-cache.org
Wed Oct 26 14:58:52 CEST 2011


commit e422c7671149a76b69523aa3450dbc317b5573d7
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Oct 6 08:43:22 2011 +0000

    Sense of exit-code test was wrong.

diff --git a/bin/varnishd/mgt_child.c b/bin/varnishd/mgt_child.c
index 9d6966a..ee74452 100644
--- a/bin/varnishd/mgt_child.c
+++ b/bin/varnishd/mgt_child.c
@@ -479,7 +479,7 @@ mgt_sigchld(const struct vev *e, int what)
 	vsb = VSB_new_auto();
 	XXXAN(vsb);
 	VSB_printf(vsb, "Child (%d) %s", r, status ? "died" : "ended");
-	if (!WIFEXITED(status) && WEXITSTATUS(status)) {
+	if (WIFEXITED(status) && WEXITSTATUS(status)) {
 		VSB_printf(vsb, " status=%d", WEXITSTATUS(status));
 		exit_status |= 0x20;
 	}



More information about the varnish-commit mailing list