https://issues.apache.org/SpamAssassin/show_bug.cgi?id=5950
--- Comment #2 from Tom Vajzovic <[EMAIL PROTECTED]> 2008-08-02 17:33:33 PST --- Created an attachment (id=4352) --> (https://issues.apache.org/SpamAssassin/attachment.cgi?id=4352) patch to move writing pidfile before daemonize I really don't know if this is safe, but it looks like it should work. It needs someone who is familiar with the code to check it. As the comments in the file indicate not to write the pidfile before installing the handlers, I moved them up before daemonize(), and then moved writing the pidfile after them and immediately before daemonize(). If I was writing this in C, I would fsync() (or fdatasync) both the pidfile and its parent directory before detaching from the terminal, to ensure that commands following "spamd -d" could find it. I don't know that that can be done in perl. What I have done here is probably enough if it doesn't break anything else. -- Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
