mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-18 05:28:36 -07: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…
Add table
Add a link
Reference in a new issue