]> err.no Git - varnish/commitdiff
Tell if we could not write the PID file.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 15 Feb 2008 13:19:49 +0000 (13:19 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 15 Feb 2008 13:19:49 +0000 (13:19 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2485 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/varnishd.c

index 2ebd122a0c33718b1c281922159a559e9815bab5..9823d08aa48e1a2bbff916abd37591b1a1c5b582 100644 (file)
@@ -553,8 +553,8 @@ main(int argc, char *argv[])
        if (d_flag == 1)
                printf("%d\n", getpid());
 
-       if (pfh != NULL)
-               vpf_write(pfh);         /* XXX: Warn or Err if fail ? */
+       if (pfh != NULL && vpf_write(pfh) 
+               fprintf(stderr, "NOTE: Could not write PID file\n");
 
        mgt_cli_init();