qemu-devel
[Top][All Lists]
Advanced

[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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]