[milter-greylist] catching signals and peer patch
2004-10-13 by Klas Heggemann
Emmanuel Dreyfus wrote: > >> In order to get the database saved when the process gets killed, I've >> added a few lines to catch SIGTERM (which the start/stop-script sends) >> and call exit (which dumps the database via onexit()). You can take >> a look at it here: >> >> ftp://ftp.nada.kth.se/Sysgr/milter.signal.patch > > I'm not sure we can do that: libmilter documentation explicitely says > it takes care of all signals. Catching the signal may break the > library API > in the future. I understand your concern. However without this, the database will not get dumped on Solaris 9 when the milter is stopped. I guess there should be some callback in the libmilter (maybe the xxfi_abourt()?) to handle this. I'll keep the patch around maybe #ifdef:ed so it works as it should in Solaris 9. Is 1.5.8 considered as stable as 1.5.3? Could I run this on a production system (and thus test the peer-patch)? /klas