qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Handle terminating signals.


From: M. Warner Losh
Subject: Re: [Qemu-devel] [PATCH] Handle terminating signals.
Date: Tue, 12 Aug 2008 13:29:06 -0600 (MDT)

In message: <address@hidden>
            Gerd Hoffmann <address@hidden> writes:
: Ian Jackson wrote:
: > Gerd Hoffmann writes ("Re: [Qemu-devel] [PATCH] Handle terminating 
signals."):
: >> Ian Jackson wrote:
: >>> SIGQUIT should not be in this list.  QUIT does not mean `please
: >>> terminate'.  It's a signal used for debugging purposes and usually
: >>> means `please pretend this program took a SEGV'.  The default action
: >>> is to die and dump core, and this should be preserved.
: >> Ok, we could take the SIGSEGV cleanup route, then call abort().  That
: >> should come close enougth.  Does that sound ok?
: > 
: > No, because the program should not attempt to catch SEGV either.
: 
: Why not?  Can you change your attitude to say "no" without giving
: reasons please?

The only portable thing one can do when catching SEGV is terminate the
program.  Otherwise, when the signal handler returns, SEGV happens
again...

Warner





reply via email to

[Prev in Thread] Current Thread [Next in Thread]