[master] 6d7d399 The -C mode failed to clean up its random workdirectory because of _.pid

Poul-Henning Kamp phk at FreeBSD.org
Mon Sep 11 21:00:07 UTC 2017


commit 6d7d3992cbb3a7daed0e0766785a8e7095b3b3ad
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Sep 11 20:58:27 2017 +0000

    The -C mode failed to clean up its random workdirectory because of _.pid

diff --git a/bin/varnishd/mgt/mgt_main.c b/bin/varnishd/mgt/mgt_main.c
index 67492d6..8a5f918 100644
--- a/bin/varnishd/mgt/mgt_main.c
+++ b/bin/varnishd/mgt/mgt_main.c
@@ -243,6 +243,7 @@ mgt_Cflag_atexit(void)
 	if (getpid() != mgt_pid)
 		return;
 	(void)rmdir("vmod_cache");
+	(void)unlink("_.pid");
 	(void)rmdir(Cn_arg);
 }
 


More information about the varnish-commit mailing list