]> git.proxmox.com Git - qemu.git/commit - qemu-char.c
trap signals for "-serial mon:stdio"
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 3 Jul 2013 16:29:45 +0000 (20:29 +0400)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 9 Jul 2013 18:14:06 +0000 (13:14 -0500)
commit02c4bdf1d2ca8c02a9bae16398f260b5c08d08bf
tree3edbc0c6ea3ac5635091890d5c637bb4e382dacb
parent964c6fa16f50a607f9da5068d6bf15ccc93872c0
trap signals for "-serial mon:stdio"

With mon:stdio you can exit the VM by switching to the monitor and
sending the "quit" command.  It is then useful to pass Ctrl-C to the
VM instead of exiting.

This in turn lets us stop tying the default signal handling behavior
to -nographic, removing gratuitous differences between "-display none"
and "-nographic".

This patch changes behavior for "-display none -serial mon:stdio", as
expected, but not for "-display none -serial stdio".

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1372868986-25988-1-git-send-email-mjt@msgid.tls.msk.ru
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-char.c
qemu-options.hx