[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: |
Mon, 11 Aug 2008 21:46:42 +0200 |
User-agent: |
Thunderbird 2.0.0.16 (X11/20080723) |
Ian Jackson wrote:
> Gerd Hoffmann writes ("[Qemu-devel] [PATCH] Handle terminating signals."):
>> This patch makes qemu handle signals better. For normal signals
>> (SIGINT, SIGTERM & friends) it just sets the request_shutdown flag,
>> making the main_loop exit and qemu taking the usual exit route, with
>> atexit handlers being called and so on, instead of qemu just being
>> killed by the signal.
>>
>> + sigaction(SIGINT, &act, NULL);
>> + sigaction(SIGHUP, &act, NULL);
>> + sigaction(SIGTERM, &act, NULL);
>> + sigaction(SIGQUIT, &act, NULL);
>
> 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?
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 <=
- 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, 2008/08/12
- 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