diff options
author | Breno Leitao <leitao@linux.vnet.ibm.com> | 2009-11-03 13:38:32 -0200 |
---|---|---|
committer | Breno Leitao <leitao@linux.vnet.ibm.com> | 2009-11-03 13:38:32 -0200 |
commit | 249534c041971db5e9f89cb11b6d38d311e91f57 (patch) | |
tree | bab54dd3584d383345dbd89de9d6d8b8875197ce /runtime/staprun/staprun.h | |
parent | 9f61c5d4c3487aa8225d5271c798f5ebaafc398a (diff) | |
download | systemtap-steved-249534c041971db5e9f89cb11b6d38d311e91f57.tar.gz systemtap-steved-249534c041971db5e9f89cb11b6d38d311e91f57.tar.xz systemtap-steved-249534c041971db5e9f89cb11b6d38d311e91f57.zip |
Fix for bug 10866 (exit with rc != 0 on script ERRORs).
This patch just make the RC=1 when any output line starts with ERROR:.
Also some minors error that was returning 0 instead of 1 were fixed.
Diffstat (limited to 'runtime/staprun/staprun.h')
-rw-r--r-- | runtime/staprun/staprun.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/staprun/staprun.h b/runtime/staprun/staprun.h index f9f01003..9cdbc861 100644 --- a/runtime/staprun/staprun.h +++ b/runtime/staprun/staprun.h @@ -114,7 +114,7 @@ int init_staprun(void); int init_stapio(void); int stp_main_loop(void); int send_request(int type, void *data, int len); -void cleanup_and_exit (int); +void cleanup_and_exit (int, int); int init_ctl_channel(const char *name, int verb); void close_ctl_channel(void); int init_relayfs(void); |