r2485 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Fri Feb 15 14:19:49 CET 2008


Author: phk
Date: 2008-02-15 14:19:49 +0100 (Fri, 15 Feb 2008)
New Revision: 2485

Modified:
   trunk/varnish-cache/bin/varnishd/varnishd.c
Log:
Tell if we could not write the PID file.


Modified: trunk/varnish-cache/bin/varnishd/varnishd.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/varnishd.c	2008-02-15 13:04:36 UTC (rev 2484)
+++ trunk/varnish-cache/bin/varnishd/varnishd.c	2008-02-15 13:19:49 UTC (rev 2485)
@@ -553,8 +553,8 @@
 	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();
 




More information about the varnish-commit mailing list