]> err.no Git - varnish/commitdiff
Specifically mark return values we do not wish to check.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 29 Jan 2008 11:14:22 +0000 (11:14 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 29 Jan 2008 11:14:22 +0000 (11:14 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2397 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/mgt_child.c

index cca3b1c676c47e576163382713bcd5244171fb26..2287d859348aec8b3066095212ea474c5ac76612 100644 (file)
@@ -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);