[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Handle terminating signals.
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-devel] [PATCH] Handle terminating signals. |
Date: |
Tue, 12 Aug 2008 21:42:07 +0200 |
User-agent: |
Thunderbird 2.0.0.16 (X11/20080723) |
M. Warner Losh wrote:
> In message: <address@hidden>
> Gerd Hoffmann <address@hidden> 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/
- [Qemu-devel] [PATCH] Handle terminating signals., Gerd Hoffmann, 2008/08/06
- Re: [Qemu-devel] [PATCH] Handle terminating signals., Ian Jackson, 2008/08/11
- Re: [Qemu-devel] [PATCH] Handle terminating signals., Gerd Hoffmann, 2008/08/11
- Re: [Qemu-devel] [PATCH] Handle terminating signals., Ian Jackson, 2008/08/12
- Re: [Qemu-devel] [PATCH] Handle terminating signals., Stefano Stabellini, 2008/08/12
- Re: [Qemu-devel] [PATCH] Handle terminating signals., Gerd Hoffmann, 2008/08/12
- Re: [Qemu-devel] [PATCH] Handle terminating signals., M. Warner Losh, 2008/08/12
- Re: [Qemu-devel] [PATCH] Handle terminating signals.,
Gerd Hoffmann <=
- Re: [Qemu-devel] [PATCH] Handle terminating signals., Anthony Liguori, 2008/08/12
- Re: [Qemu-devel] [PATCH] Handle terminating signals., Daniel P. Berrange, 2008/08/13
- Re: [Qemu-devel] [PATCH] Handle terminating signals., Ian Jackson, 2008/08/13