diff options
author | Max Reitz <mreitz@redhat.com> | 2017-02-08 00:57:57 +0100 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2017-04-28 18:48:11 +0200 |
commit | 262fbae692722d5c8b647ba6b079409baefc3e3e (patch) | |
tree | 11874fcce12774d3d3635bfda4e696c2cc4e1149 /util/qemu-progress.c | |
parent | cc02e89eb4eb8b1cc43b2bc168dc0fca48ee721f (diff) | |
download | qemu-262fbae692722d5c8b647ba6b079409baefc3e3e.zip |
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>
Diffstat (limited to 'util/qemu-progress.c')
-rw-r--r-- | util/qemu-progress.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/qemu-progress.c b/util/qemu-progress.c index f745233763..3c2223c1a2 100644 --- a/util/qemu-progress.c +++ b/util/qemu-progress.c @@ -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 |