diff --git a/tools/perf/util/util.c b/tools/perf/util/util.c index 07da970a62a3c6371e998280ac7e33792fa6052f..aff0cfd836622a7f47240e4a36305e16ca2a1b48 100644 --- a/tools/perf/util/util.c +++ b/tools/perf/util/util.c @@ -352,7 +352,8 @@ void sighandler_dump_stack(int sig) { psignal(sig, "perf"); dump_stack(); - exit(sig); + signal(sig, SIG_DFL); + raise(sig); } int parse_nsec_time(const char *str, u64 *ptime)