[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Handle terminating signals.
From: |
Ian Jackson |
Subject: |
Re: [Qemu-devel] [PATCH] Handle terminating signals. |
Date: |
Mon, 11 Aug 2008 17:52:48 +0100 |
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. Anyone who
deliberately sends qemu a SIGQUIT will be annoyed if it traps it and
no-one will send it accidentally.
Ian.
- [Qemu-devel] [PATCH] Handle terminating signals., Gerd Hoffmann, 2008/08/06
- Re: [Qemu-devel] [PATCH] Handle terminating signals.,
Ian Jackson <=
- 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, 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