From: phk Date: Fri, 15 Feb 2008 13:19:49 +0000 (+0000) Subject: Tell if we could not write the PID file. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b1970e16c9d93aa61514f1b1fb3dc1a62f813d7;p=varnish Tell if we could not write the PID file. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2485 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/varnishd.c b/varnish-cache/bin/varnishd/varnishd.c index 2ebd122a..9823d08a 100644 --- a/varnish-cache/bin/varnishd/varnishd.c +++ b/varnish-cache/bin/varnishd/varnishd.c @@ -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();