These patches come with NO WARRANTY.
The patches listed here are in the public domain.
A getpeereid system call
Forced multilog rotation
Make multilog handle SIGHUP by rotating log files at the first opportunity. NB: The rotation is not immediate; rotation occurs at the end of the next line processed by multilog. Apply this patch in your daemontools source directory.
This patch is obsolete as of daemontools-0.75! The daemontools-0.75 multilog program offers a similar forced-rotation feature without a patch (although in response to SIGALRM).
Save/discard logs with multilog
For multilog with daemontools-0.76.
After receiving SIGINT, multilog will continue to read data, but will no longer write them to logs. After receiving SIGHUP, multilog will again write logs as usual. Apply this patch in your daemontools source directory.
When is this patch useful? When you have a high-volume service like dnscache that produces copious logs, the multilog process can limit server performance, by blocking the server while writing and rotating logs. With this patch, you can throw away logs under ordinary operation, reducing the limit on server performance, and retain logs when circumstances warrant analysis. And all without restarting the service.