Commit 5981c35a authored by Walid Boudebouda's avatar Walid Boudebouda Committed by Dridi Boukelmoune

mgt: Remove vext_cache only when necessary

Refs #3874
parent 4fa7f784
...@@ -286,9 +286,11 @@ mgt_Cflag_atexit(void) ...@@ -286,9 +286,11 @@ mgt_Cflag_atexit(void)
/* Only master process */ /* Only master process */
if (getpid() != heritage.mgt_pid) if (getpid() != heritage.mgt_pid)
return; return;
vext_cleanup(1); if (arg_list_count("E")) {
vext_cleanup(1);
VJ_rmdir("vext_cache");
}
VJ_rmdir("vmod_cache"); VJ_rmdir("vmod_cache");
VJ_rmdir("vext_cache");
(void)chdir("/"); (void)chdir("/");
VJ_rmdir(workdir); VJ_rmdir(workdir);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment