X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=util%2Fqemu-progress.c;h=20d51f8c128b3412b8389e34bbff44b7d2e068ba;hb=e0cbcf1eea16e81f116560130a1b36da711fb102;hp=532333e7573d23dedae3d4b896ebbeab53473c43;hpb=bd5072d75622c3a702741064df87ea8911bae1a4;p=mirror_qemu.git diff --git a/util/qemu-progress.c b/util/qemu-progress.c index 532333e757..20d51f8c12 100644 --- a/util/qemu-progress.c +++ b/util/qemu-progress.c @@ -22,9 +22,8 @@ * THE SOFTWARE. */ -#include "qemu-common.h" #include "qemu/osdep.h" -#include +#include "qemu-common.h" struct progress_state { float current; @@ -89,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 @@ -129,7 +131,7 @@ void qemu_progress_end(void) /* * Report progress. * @delta is how much progress we made. - * If @max is zero, @delta is an absolut value of the total job done. + * If @max is zero, @delta is an absolute value of the total job done. * Else, @delta is a progress delta since the last call, as a fraction * of @max. I.e. the delta is @delta * @max / 100. This allows * relative accounting of functions which may be a different fraction of