aboutsummaryrefslogtreecommitdiffstats
path: root/sysemu.h
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2011-03-15 13:56:04 +0200
committerBlue Swirl <blauwirbel@gmail.com>2011-03-26 12:54:42 +0000
commitf64622c401d4975a56b8559e16286231a1d2cfb8 (patch)
tree20912e758f2b1a3be545af99215ef8a7276ac466 /sysemu.h
parentbf6b87a883f4067574764acb76024e34abba4aad (diff)
report that QEMU process was killed by a signal
Currently when rogue script kills QEMU process (using TERM/INT/HUP signal) it looks indistinguishable from system shutdown. Lets report that QEMU was killed and leave some clues about the killer identity. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'sysemu.h')
-rw-r--r--sysemu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysemu.h b/sysemu.h
index c43c7af6a..bbbd0fd79 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -66,6 +66,8 @@ void qemu_system_vmstop_request(int reason);
int qemu_shutdown_requested(void);
int qemu_reset_requested(void);
int qemu_powerdown_requested(void);
+void qemu_system_killed(int signal, pid_t pid);
+void qemu_kill_report(void);
extern qemu_irq qemu_system_powerdown;
void qemu_system_reset(void);