qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] catch signals


From: Ian Jackson
Subject: Re: [Qemu-devel] [PATCH] catch signals
Date: Mon, 11 Aug 2008 17:50:16 +0100

Gerd Hoffmann writes ("[Qemu-devel] [PATCH] catch signals"):
> This patch adds a signal handler to qemu, so fatal signals don't kill
> off qemu.  Instead a shutdown request is issued, like it is done when
> you close the SDL window.  qemu cleans up nicely then, cespecially it
> calls all atexit handlers.
...
> +    sigaction(SIGINT,  &act, NULL);
> +    sigaction(SIGTERM, &act, NULL);
> +    sigaction(SIGQUIT, &act, NULL);
> +    sigaction(SIGSEGV, &act, NULL);
> +    sigaction(SIGBUS,  &act, NULL);

This is wrong, I think.  It's fine to take this action for
INT and TERM.

It's very wrong to do so for SEGV and BUS.  QUIT is used for debugging
so should be left set to DFL too.

Ian.




reply via email to

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