exit status

This commit is contained in:
Yuichi Nishiwaki 2014-07-29 15:43:59 +09:00
parent 36f4a8fa66
commit 9b95c3c75e
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}