Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] dbdump command

2007-02-23 by Oliver Fromme

Emmanuel Dreyfus wrote:
 > Oliver Fromme wrote:
 > > Oh, really?  It works perfectly fine for me on FreeBSD 6.
 > > I can't imagine what the problem could be with simply
 > > installing a handler for SIGTERM (and possibly SIGHUP
 > > and other signals) which sets a flag so the program can
 > > perform a controlled shutdown.  I've done such things in
 > > my own programs a million times, and it works on any
 > > POSIX-compliant system.
 > 
 > The milter API forbids installing a signal handler. 

You are right, I've just had a look at the documentation.
That's a serious design flaw in the milter API.  :-(
Brain-damaged, if you ask me.

However, it seems like the xxfi_abort callback is called
when the milter is about to terminate.  Is that correct?
Can't it be used for dumping the DB?

After all, the dumping upon SIGTERM _is_ working fine on
FreeBSD 6, so there must already be a way to do it.
I just wonder why it doesn't work on some other operating
systems ...  What's the problem with those OS?  Do they
have a buggy POSIX threads implementation that doesn't
handle signals correctly?

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Gesch\ufffdftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M\ufffdn-
chen, HRB 125758,  Gesch\ufffdftsf\ufffdhrer: Maik Bachmann, Olaf Erb, Ralf Gebhart
Any opinions expressed in this message are personal to the author and may
not necessarily reflect the opinions of secnetix GmbH & Co KG in any way.
FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"If you aim the gun at your foot and pull the trigger, it's
UNIX's job to ensure reliable delivery of the bullet to
where you aimed the gun (in this case, Mr. Foot)."
        -- Terry Lambert, FreeBSD-hackers mailing list.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.