mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 03:06:10 +00:00
perf trace/scripting: Check return val of perl_run()
The return value from perl_run() is currently ignored, but it should be checked and used to exit perf if there are problems loading the script. Signed-off-by: Tom Zanussi <tzanussi@gmail.com> Cc: fweisbec@gmail.com Cc: rostedt@goodmis.org LKML-Reference: <1260867220-15699-4-git-send-email-tzanussi@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
a3a7cb7bb1
commit
8f11d85a0e
1 changed files with 5 additions and 1 deletions
|
@ -379,7 +379,11 @@ static int perl_start_script(const char *script, int argc, const char **argv)
|
|||
goto error;
|
||||
}
|
||||
|
||||
perl_run(my_perl);
|
||||
if (perl_run(my_perl)) {
|
||||
err = -1;
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (SvTRUE(ERRSV)) {
|
||||
err = -1;
|
||||
goto error;
|
||||
|
|
Loading…
Reference in a new issue