Mailing List Archive

[master] 6f1a0831d we can not rmdir our current working directory (on solaris)
commit 6f1a0831d08c5d78d137d706b4d414fef5ae921f
Author: Nils Goroll <nils.goroll@uplex.de>
Date: Tue Jun 2 09:04:27 2020 +0200

we can not rmdir our current working directory (on solaris)

diff --git a/bin/varnishd/mgt/mgt_main.c b/bin/varnishd/mgt/mgt_main.c
index cd63ed93b..7eb7669cc 100644
--- a/bin/varnishd/mgt/mgt_main.c
+++ b/bin/varnishd/mgt/mgt_main.c
@@ -252,6 +252,7 @@ mgt_Cflag_atexit(void)
return;
VJ_rmdir("vmod_cache");
VJ_unlink("_.pid");
+ (void)chdir("/");
VJ_rmdir(workdir);
}

_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit