[master] 282df8e Zero the sigaction structure, to make it obvious to Coverity that we know what we're doing.

Poul-Henning Kamp phk at varnish-cache.org
Tue Oct 1 16:05:47 CEST 2013


commit 282df8ede5daf018f17bff4171d4552c6340b622
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Oct 1 14:03:00 2013 +0000

    Zero the sigaction structure, to make it obvious to Coverity that
    we know what we're doing.

diff --git a/bin/varnishd/mgt/mgt_child.c b/bin/varnishd/mgt/mgt_child.c
index 2f81db1..5aad339 100644
--- a/bin/varnishd/mgt/mgt_child.c
+++ b/bin/varnishd/mgt/mgt_child.c
@@ -412,6 +412,7 @@ mgt_launch_child(struct cli *cli)
 #endif
 
 		if (mgt_param.sigsegv_handler) {
+			memset(&sa, 0, sizeof sa);
 			sa.sa_sigaction = mgt_sigsegv_handler;
 			sa.sa_flags = SA_SIGINFO;
 			(void)sigaction(SIGSEGV, &sa, NULL);



More information about the varnish-commit mailing list