[Mailman-Developers] minor qrunner bug.

Barry A. Warsaw barry@digicool.com
Sat, 2 Jun 2001 01:31:43 -0400

>>>>> "CVR" == Chuq Von Rospach <chuqui@plaidworks.com> writes:

    CVR> Just noticed a minor bug in qrunner. when qrunner starts up,
    CVR> it opens the log files, and leaves them open.

    CVR> while open/write/close is expensive, given all of the other
    CVR> stuff qrunner's doing and the relative lack of logging, I
    CVR> don't think it's significant. Alternatively, it can notice
    CVR> the files have been moved/zeroed, or perhaps accept a HUP
    CVR> like syslog...

>>>>> "JS" == Jon Stevens <jon@latchkey.com> writes:

    JS> The way that Apache HTTPd works (as well as many other
    JS> daemons) is that you move the log files out of the way and
    JS> then you HUP Apache which will re-create the log
    JS> files. Accepting HUP's (or a graceful restart) is
    JS> functionality that should be added to qrunner if it isn't
    JS> there already.

This turned out to fairly easy to add, so I have. :)

SIGHUP on the qrunner master process now closes all the log files.
They will be reopened on the next write.