mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
bf6b87a883
commit
f64622c401
3 changed files with 25 additions and 4 deletions
2
sysemu.h
2
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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue