Varnish constantly restarting

Alexander Staubo alex at bengler.no
Sun Jul 4 05:35:10 CEST 2010


On Sat, Jul 3, 2010 at 11:04 PM, Per Buer <perbu at varnish-software.com> wrote:
> On Sat, Jul 3, 2010 at 7:59 PM, Alexander Staubo <alex at bengler.no> wrote:
>> Curiously, though, the child is dying with SIGQUIT.
>
> Are you setting diag_bitmap? That would make the master send QUIT.

Actually, it looks like Varnish *will* use SIGQUIT ordinarily, as
diag_bitmap seems to be 0 by default. From mgt_child.c (apparently
0x1000 means "do not core-dump child process"):

        if (params->diag_bitmap & 0x1000)
                (void)kill(child_pid, SIGKILL);
        else
                (void)kill(child_pid, SIGQUIT);

That's an odd choice of default behaviour. I would expect core-dumping
to be something you would explicitly turn on, especially given that
the name of the variable is diag_bitmap.



More information about the varnish-misc mailing list