On Mon, Mar 22, 2004 at 10:37:30AM +0000, Angus Leeming wrote:

> > Not really happy actually. If we get a SIGPIPE and a SIGSEGV, we'd
> > lose the SIGSEGV afaics.
> 
> Hence my statement that we should remove the SIGPIPE. Ie, SIGPIPE 
> signals should not be handled by error_handler. In fact we don't need 
> to handle them at all.

OK, missed that, sorry.

> > It's not a *big* deal but since you're fiddling with getting
> > it right...
> 
> So outline a solution strategy. Currently we have:

Actually I've changed my mind, your code (modulo SIGPIPE issue) is fine,
with one change: we should do the emergencyCleanup *first* so if the
lyxerr *does* have problems, then we've at least made an effort to save
the files ASAP.

I think it's fine to do such stuff in signal handlers when we're trying
to recover what we can from a fatal situation.

regards
john

Reply via email to