]> err.no Git - varnish/commit
Fix child restart by always calling close_sockets() when the child dies;
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 17 Jul 2007 10:33:46 +0000 (10:33 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 17 Jul 2007 10:33:46 +0000 (10:33 +0000)
commitf09159b2538682bfe37f7187d7a6494228dec057
tree5c2521e3b6a8b8083460b67547caafdaada05d31
parent1490e01355a630a251773cdde045349074253adf
Fix child restart by always calling close_sockets() when the child dies;
otherwise open_sockets() fails, which causes start_child() to fail silently.

Furthermore, if open_sockets() fails and child_state is CH_DIED, it will
not be possible to start it manually later; therefore, set child_state
to CH_STOPPED when open_sockets() fails.

Note: it wouldn't hurt if open_sockets() were a little more talkative.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1710 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/mgt_child.c