From 249534c041971db5e9f89cb11b6d38d311e91f57 Mon Sep 17 00:00:00 2001 From: Breno Leitao Date: Tue, 3 Nov 2009 13:38:32 -0200 Subject: 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. --- runtime/staprun/staprun.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/staprun/staprun.h') 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); -- cgit