From 9b95c3c75ec01b427a20f7486a7bee5625291534 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Tue, 29 Jul 2014 15:43:59 +0900 Subject: [PATCH] exit status --- tools/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/main.c b/tools/main.c index e241a277..428b2764 100644 --- a/tools/main.c +++ b/tools/main.c @@ -9,6 +9,7 @@ int main(int argc, char *argv[], char **envp) { pic_state *pic; + int status = 0; pic = pic_open(argc, argv, envp); @@ -18,9 +19,10 @@ main(int argc, char *argv[], char **envp) } pic_catch { pic_print_backtrace(pic, pic->err); + status = 1; } pic_close(pic); - return 0; + return status; }