projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf record: prevent kill(0, SIGTERM);
[profile/ivi/kernel-adaptation-intel-automotive.git]
/
tools
/
perf
/
builtin-record.c
diff --git
a/tools/perf/builtin-record.c
b/tools/perf/builtin-record.c
index
dc3435e
..
711745f
100644
(file)
--- a/
tools/perf/builtin-record.c
+++ b/
tools/perf/builtin-record.c
@@
-193,7
+193,7
@@
static void sig_handler(int sig)
static void sig_atexit(void)
{
- if (child_pid
!= -1
)
+ if (child_pid
> 0
)
kill(child_pid, SIGTERM);
if (signr == -1)