[5.2] 95df549 The -C mode failed to clean up its random workdirectory because of _.pid

PÃ¥l Hermunn Johansen hermunn at varnish-software.com
Fri Sep 15 11:17:18 UTC 2017


commit 95df549c16b82d0367fbca23bebd82a642ce5158
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