From 489cab3b9ab0017b6331b9a24ec2eedd4fac2135 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 29 Jan 2008 11:14:22 +0000 Subject: [PATCH] Specifically mark return values we do not wish to check. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2397 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/mgt_child.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/varnish-cache/bin/varnishd/mgt_child.c b/varnish-cache/bin/varnishd/mgt_child.c index cca3b1c6..2287d859 100644 --- a/varnish-cache/bin/varnishd/mgt_child.c +++ b/varnish-cache/bin/varnishd/mgt_child.c @@ -114,7 +114,7 @@ child_poker(const struct ev *e, int what) 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 @@ close_sockets(void) 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 @@ start_child(void) 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 @@ mgt_sigint(const struct ev *e, int what) (void)e; (void)what; fprintf(stderr, "Manager got SIGINT\n"); - fflush(stdout); + (void)fflush(stdout); if (child_pid >= 0) stop_child(); exit (2); -- 2.39.5