[4.1] 7268df1 Bail out on this error.

PÃ¥l Hermunn Johansen hermunn at varnish-software.com
Tue Sep 13 13:07:11 CEST 2016


commit 7268df19e1e829a4295192c644025110508567ad
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Sep 12 06:16:57 2016 +0000

    Bail out on this error.

diff --git a/bin/varnishd/mgt/mgt_child.c b/bin/varnishd/mgt/mgt_child.c
index 6e61306..2fa0795 100644
--- a/bin/varnishd/mgt/mgt_child.c
+++ b/bin/varnishd/mgt/mgt_child.c
@@ -743,8 +743,10 @@ MGT_Run(void)
 	}
 
 	i = mgt_SHM_Commit();
-	if (i != 0)
+	if (i != 0) {
 		MGT_complain(C_ERR, "Could not commit SHM file");
+		return;
+	}
 
 	i = vev_schedule(mgt_evb);
 	if (i != 0)



More information about the varnish-commit mailing list