mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
progress: Show current progress on SIGINFO
Currently we only print progress information on retrieval of SIGUSR1. Some systems have a dedicated SIGINFO for this, however, so it should be handled appropriately if it is available. Buglink: https://bugs.launchpad.net/qemu/+bug/1662468 Signed-off-by: Max Reitz <mreitz@redhat.com> Message-id: 20170207235757.2026-1-mreitz@redhat.com Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
cc02e89eb4
commit
262fbae692
2 changed files with 5 additions and 1 deletions
|
@ -88,6 +88,9 @@ static void progress_dummy_init(void)
|
|||
action.sa_handler = sigusr_print;
|
||||
action.sa_flags = 0;
|
||||
sigaction(SIGUSR1, &action, NULL);
|
||||
#ifdef SIGINFO
|
||||
sigaction(SIGINFO, &action, NULL);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* SIGUSR1 is SIG_IPI and gets blocked in qemu_init_main_loop(). In the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue