]> git.proxmox.com Git - mirror_qemu.git/commit - qemu-io-cmds.c
qemu-io: Add sigraise command
authorMax Reitz <mreitz@redhat.com>
Mon, 8 Dec 2014 09:48:10 +0000 (10:48 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 12 Dec 2014 15:48:26 +0000 (15:48 +0000)
commit0e82dc7bbd96f9b0fb76e5fe263ba04b15e68127
treef152f0586ee29487c3fccd44a4373f8d67027a33
parent30af51ce7f4aebb37359367c65b7405451e70702
qemu-io: Add sigraise command

abort() has the sometimes undesirable side-effect of generating a core
dump. If that is not needed, SIGKILL has the same effect of abruptly
crash qemu; without a core dump.

Thus, -c abort is not always useful to simulate a qemu-io crash;
therefore, this patch adds a new sigraise command which allows raising
a signal.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-id: 1418032092-16813-2-git-send-email-mreitz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
qemu-io-cmds.c