* [Qemu-devel] [PATCH] Fix termination by signal with -no-shutdown
@ 2011-09-14 13:38 Kevin Wolf
2011-09-16 14:10 ` Anthony Liguori
0 siblings, 1 reply; 2+ messages in thread
From: Kevin Wolf @ 2011-09-14 13:38 UTC (permalink / raw)
To: qemu-devel; +Cc: kwolf
On signals such as SIGTERM qemu should exit instead of just stopping the VM
even with -no-shutdown.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
---
vl.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/vl.c b/vl.c
index b773d2f..0c2fc3f 100644
--- a/vl.c
+++ b/vl.c
@@ -1296,6 +1296,7 @@ void qemu_system_killed(int signal, pid_t pid)
{
shutdown_signal = signal;
shutdown_pid = pid;
+ no_shutdown = 0;
qemu_system_shutdown_request();
}
--
1.7.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] Fix termination by signal with -no-shutdown
2011-09-14 13:38 [Qemu-devel] [PATCH] Fix termination by signal with -no-shutdown Kevin Wolf
@ 2011-09-16 14:10 ` Anthony Liguori
0 siblings, 0 replies; 2+ messages in thread
From: Anthony Liguori @ 2011-09-16 14:10 UTC (permalink / raw)
To: Kevin Wolf; +Cc: qemu-devel
On 09/14/2011 08:38 AM, Kevin Wolf wrote:
> On signals such as SIGTERM qemu should exit instead of just stopping the VM
> even with -no-shutdown.
>
> Signed-off-by: Kevin Wolf<kwolf@redhat.com>
Applied. Thanks.
Regards,
Anthony Liguori
> ---
> vl.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/vl.c b/vl.c
> index b773d2f..0c2fc3f 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -1296,6 +1296,7 @@ void qemu_system_killed(int signal, pid_t pid)
> {
> shutdown_signal = signal;
> shutdown_pid = pid;
> + no_shutdown = 0;
> qemu_system_shutdown_request();
> }
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-16 14:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-14 13:38 [Qemu-devel] [PATCH] Fix termination by signal with -no-shutdown Kevin Wolf
2011-09-16 14:10 ` Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).