r2397 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Tue Jan 29 12:14:22 CET 2008


Author: phk
Date: 2008-01-29 12:14:22 +0100 (Tue, 29 Jan 2008)
New Revision: 2397

Modified:
   trunk/varnish-cache/bin/varnishd/mgt_child.c
Log:
Specifically mark return values we do not wish to check.


Modified: trunk/varnish-cache/bin/varnishd/mgt_child.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_child.c	2008-01-29 10:59:01 UTC (rev 2396)
+++ trunk/varnish-cache/bin/varnishd/mgt_child.c	2008-01-29 11:14:22 UTC (rev 2397)
@@ -114,7 +114,7 @@
 		return (1);
 	if (child_pid > 0 && mgt_cli_askchild(NULL, NULL, "ping\n")) {
 		fprintf(stderr, "Child not responding to ping\n");
-		kill(child_pid, SIGKILL);
+		(void)kill(child_pid, SIGKILL);
 	}
 	return (0);
 }
@@ -156,7 +156,7 @@
 	VTAILQ_FOREACH(ls, &heritage.socks, list) {
 		if (ls->sock < 0)
 			continue;
-		close(ls->sock);
+		(void)close(ls->sock);
 		ls->sock = -1;
 	}
 }
@@ -208,8 +208,8 @@
 
 		setproctitle("Varnish-Chld %s", heritage.name);
 
-		signal(SIGINT, SIG_DFL);
-		signal(SIGTERM, SIG_DFL);
+		(void)signal(SIGINT, SIG_DFL);
+		(void)signal(SIGTERM, SIG_DFL);
 		child_main();
 
 		exit(1);
@@ -355,7 +355,7 @@
 	(void)e;
 	(void)what;
 	fprintf(stderr, "Manager got SIGINT\n");
-	fflush(stdout);
+	(void)fflush(stdout);
 	if (child_pid >= 0)
 		stop_child();
 	exit (2);




More information about the varnish-commit mailing list