Commit c817537c authored by Tollef Fog Heen's avatar Tollef Fog Heen

Merge r3501+r3502: Don't panic if we fail to delete shared objects in atexit().

Fixes #376

Addendum to r3501: remove the file from the list.



git-svn-id: http://www.varnish-cache.org/svn/branches/2.0@3690 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent f74d4bb4
......@@ -436,7 +436,8 @@ mgt_vcc_atexit(void)
vp = VTAILQ_FIRST(&vclhead);
if (vp == NULL)
break;
mgt_vcc_del(vp);
(void)unlink(vp->fname);
VTAILQ_REMOVE(&vclhead, vp, list);
}
}
......
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