bruceg/nullmailer — Issue #2: nullmailer-send still hangs when child cannot complete SMTP session
Author: nickleverton
Created: 2012-02-22 22:09:24+00:00
State: open

Hi Bruce,

A fix was done for the above a couple of releases ago using the "selfpipe" mechanism. However this only worked first time through - if the child failed to connect again next time then it would not get killed.

I think this is because of the SIGCHLD from the first kill making the selfpipe object think that the second child had successfully exited. Soaking up the sigchild, after you've done a waitpid for the killed child, seems to solve it. Patch attached (or will be in a moment).