From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSzbB-0007AQ-RV for qemu-devel@nongnu.org; Tue, 12 Aug 2008 15:32:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSzbA-00079e-7R for qemu-devel@nongnu.org; Tue, 12 Aug 2008 15:32:05 -0400 Received: from [199.232.76.173] (port=39319 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSzbA-00079Y-2P for qemu-devel@nongnu.org; Tue, 12 Aug 2008 15:32:04 -0400 Received: from bsdimp.com ([199.45.160.85]:64670 helo=harmony.bsdimp.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KSzb9-0000sg-FS for qemu-devel@nongnu.org; Tue, 12 Aug 2008 15:32:03 -0400 Date: Tue, 12 Aug 2008 13:29:06 -0600 (MDT) Message-Id: <20080812.132906.-399282484.imp@bsdimp.com> Subject: Re: [Qemu-devel] [PATCH] Handle terminating signals. From: "M. Warner Losh" In-Reply-To: <48A1D6A3.4050406@redhat.com> References: <48A09722.3060106@redhat.com> <18593.24673.304649.806330@mariner.uk.xensource.com> <48A1D6A3.4050406@redhat.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, kraxel@redhat.com In message: <48A1D6A3.4050406@redhat.com> Gerd Hoffmann 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