Viktor Dukhovni:
> 
> 
> > On Apr 4, 2018, at 1:31 PM, Wietse Venema <wie...@porcupine.org> wrote:
> > 
> > According to RTFM, the exit() function does not return so it can't 'fail'.
> > 
> > FreeBSD:
> >     The exit() and _Exit() functions never return.
> >     The _exit() system call can never return.
> > Linux:
> >     The exit() function does not return.
> >     (Similar text for _exit and_Exit).
> 
> Yes, but it can dead-lock trying to flush stdio buffers, and the like.
> And it can dead-lock with threads running malloc(), ... it is not safe
> to call in a signal handler, while _exit() should be.

Eray, can you please do the test and ignore this discussion?

        Wietse

Reply via email to