Re: sophie: sig_exit() callable by child, causes weird hangs

David Birnbaum <[email protected]> Tue, 10 Aug 2004 12:26:15 -0400 (EDT)
Newsgroups gmane.comp.security.virus.vtools
Message-ID <[email protected]>
Chris,

That certainly explains the symptoms of our various accept() problems. 
Good catch.  3.04rc2 didn't work for me at all on Solaris, tho, so I will 
probably back-port this to 3.03.

As to why it was SEGV'ing in the first place, though....

David.

-----

On Mon, 9 Aug 2004, Chris Stromsoe wrote:

> While trying to figure out why sophie was inexplicably hanging on me earlier 
> today, I found a problem.  If a child process segfaults, the sig_exit handler 
> gets called and will close and unlink the sophie socket, leaving the parent 
> to sit in accept() forever.  I added a test to sig_exit() to check for child 
> status.  This may fix some of the other random "hang" issues that have come 
> up over the last few months that sound sort of similar to what I was seeing 
> earlier.  Patch is attached.
>
>
> -Chris