From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSzl0-0004Uu-3h for qemu-devel@nongnu.org; Tue, 12 Aug 2008 15:42:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSzkz-0004Tk-Fa for qemu-devel@nongnu.org; Tue, 12 Aug 2008 15:42:13 -0400 Received: from [199.232.76.173] (port=55148 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSzkz-0004TT-8q for qemu-devel@nongnu.org; Tue, 12 Aug 2008 15:42:13 -0400 Received: from mx1.redhat.com ([66.187.233.31]:38177) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KSzky-0004jA-UB for qemu-devel@nongnu.org; Tue, 12 Aug 2008 15:42:13 -0400 Message-ID: <48A1E78F.8000808@redhat.com> Date: Tue, 12 Aug 2008 21:42:07 +0200 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] Handle terminating signals. References: <48A09722.3060106@redhat.com> <18593.24673.304649.806330@mariner.uk.xensource.com> <48A1D6A3.4050406@redhat.com> <20080812.132906.-399282484.imp@bsdimp.com> In-Reply-To: <20080812.132906.-399282484.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1 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: "M. Warner Losh" Cc: qemu-devel@nongnu.org M. Warner Losh wrote: > In message: <48A1D6A3.4050406@redhat.com> > Gerd Hoffmann writes: > : > 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... Returning from the signal handler isn't going to work, sure. The only thing I want do is cleaning up before exiting. Most apps never ever have to care about that. Sometimes there are good reasons to attempt a cleanup even for a SEGV though. The X-Server for example attempts to put the gfx card into a sane state then. cheers, Gerd -- http://kraxel.fedorapeople.org/xenner/