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

Chris Stromsoe <[email protected]> Mon, 9 Aug 2004 23:50:29 -0700 (PDT)
Newsgroups gmane.comp.security.virus.vtools
Message-ID <[email protected]>
Forgot to say, the patch is against 3.04rc2.


-Chris

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