[Varnish] #1794: varnish*-tools do not die when terminal disconnects
Varnish
varnish-bugs at varnish-cache.org
Fri Oct 2 18:32:28 CEST 2015
#1794: varnish*-tools do not die when terminal disconnects
--------------------+--------------------
Reporter: kwy | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: build | Version: 4.0.3
Severity: normal | Resolution:
Keywords: |
--------------------+--------------------
Comment (by fgsch):
From a quick look at the code I think the right way is to setup a sighup_f
function that returns 1, so the loop in VUT_Main() is broken:
{{{
if (VUT.sighup && VUT.sighup_f) {
/* sighup callback */
VUT.sighup = 0;
i = (VUT.sighup_f)();
if (i)
break;
}
}}}
btw, rotateout should only be used if the programs are running as daemon
(VUT.d_opt equals 1).
This looks like a bug to me in the current code.
--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1794#comment:3>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list