summaryrefslogtreecommitdiff
path: root/Mailman/Queue/Control.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* We don't need this file any more, since everything's inlined withbwarsaw2001-10-181-229/+0
| | | | mailmanctl and qrunner.
* start_runner(): Changed indentation, since the parent always returns.bwarsaw2001-07-111-14/+20
| | | | | Also added a note why "mailmanctl restart" doesn't Do The Right Thing w.r.t. allowing the subrunners to re-import various Mailman modules.
* Cleaner startup/restart/shutdown implementation. This allows thebwarsaw2001-07-081-30/+48
| | | | | | | | | | | | | | | | | | | | | | | | sub-qrunners to cleanly exit themselves instead of potentially stopping them in the middle of processing a message. Specifically, sighup_handler(): Send SIGHUPs to the child processes instead of SIGINTs. start_lock_refresher(): Install our own SIGHUP handler, which simply toggles off an instance-based loop flag. The signal kicks us out of the sleep, so the next while test will return false and break us out of the loop, existing the lock refresher. No need to deal with KeyboardInterrupts. start_runner(): In the parent, just return the pid of the child. In the child, do the syslogging, and also install our own process's SIGHUP handler, which will call the qrunner's stop() method. This lets the qrunner break out of its loop at the next convenient place (i.e. after processing one of its files). Again, no need to deal with KeyboardInterrupts. master(): More accurate syslog messages. Also, make sure the children receive SIGHUP instead of SIGINT.
* intermediatebwarsaw2001-07-051-0/+205