mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
Fix termination by signal with -no-shutdown
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> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
b2bedb2144
commit
d9389b9664
1 changed files with 1 additions and 0 deletions
1
vl.c
1
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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue