diff options
Diffstat (limited to 'tools/power/x86/turbostat/turbostat.c')
-rw-r--r-- | tools/power/x86/turbostat/turbostat.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index d9703b728fbb..dd9b2efbbb2a 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -2610,6 +2610,10 @@ static void signal_handler (int signal) if (debug) fprintf(stderr, " SIGINT\n"); break; + case SIGUSR1: + if (debug > 1) + fprintf(stderr, "SIGUSR1\n"); + break; } } @@ -2623,6 +2627,8 @@ void setup_signal_handler(void) if (sigaction(SIGINT, &sa, NULL) < 0) err(1, "sigaction SIGINT"); + if (sigaction(SIGUSR1, &sa, NULL) < 0) + err(1, "sigaction SIGUSR1"); } void turbostat_loop() { |