[experimental-ims] 6cd21b2 Sense of exit-code test was wrong.

Geoff Simmons geoff at varnish-cache.org
Mon Jan 9 21:52:03 CET 2012


commit 6cd21b29d6670d18ff03cb6e377bf9b70bb0929b
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 4181a43..81e1c8d 100644
--- a/bin/varnishd/mgt_child.c
+++ b/bin/varnishd/mgt_child.c
@@ -478,7 +478,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