diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2010-12-06 15:13:38 -0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2010-12-06 15:13:38 -0200 |
commit | 18483b81ee7e70ee68d4b18be618be5cfcc0b290 (patch) | |
tree | c553f0170c99e2c421f141328bf21e3a310ac174 /tools/perf/util/trace-event-scripting.c | |
parent | 60e677373be9c0bf7c9a22937601d5a40e51c042 (diff) |
perf record: Fix eternal wait for stillborn child
When execvp fails to find the specified command on the path we won't get
SIGCHLD, so send a SIGUSR1 and exit right away.
Current situation would require a SIGINT performed by the user and would
produce meaningless summary.
Now:
[acme@emilia linux]$ ./foo
-bash: ./foo: No such file or directory
[acme@emilia linux]$ perf record ./foo
./foo: No such file or directory
[acme@emilia linux]$
Acked-by: Thomas Gleixner <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Tom Zanussi <[email protected]>
Cc: Thomas Gleixner <[email protected]>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions