diff options
Diffstat (limited to 'tools/perf/builtin-record.c')
-rw-r--r-- | tools/perf/builtin-record.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index dc3435e18bde..711745f56bba 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c | |||
@@ -193,7 +193,7 @@ static void sig_handler(int sig) | |||
193 | 193 | ||
194 | static void sig_atexit(void) | 194 | static void sig_atexit(void) |
195 | { | 195 | { |
196 | if (child_pid != -1) | 196 | if (child_pid > 0) |
197 | kill(child_pid, SIGTERM); | 197 | kill(child_pid, SIGTERM); |
198 | 198 | ||
199 | if (signr == -1) | 199 | if (signr == -1) |