From 2b1970e16c9d93aa61514f1b1fb3dc1a62f813d7 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 15 Feb 2008 13:19:49 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/varnishd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.5