diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2019-03-28 19:42:13 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2019-03-28 19:42:13 +0100 |
commit | 09139645e866b745c9f8797659f12c90af867015 (patch) | |
tree | 846b257841555e5bc91cad1c47eafddc406e19d3 /src/blogc-make/reloader.c | |
parent | 35702f4cfcc5ffc21d8dcbf0a9d176118fec2927 (diff) | |
download | blogc-09139645e866b745c9f8797659f12c90af867015.tar.gz blogc-09139645e866b745c9f8797659f12c90af867015.tar.bz2 blogc-09139645e866b745c9f8797659f12c90af867015.zip |
make: exit 1 on error
Diffstat (limited to 'src/blogc-make/reloader.c')
-rw-r--r-- | src/blogc-make/reloader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blogc-make/reloader.c b/src/blogc-make/reloader.c index d08d49c..fea8bd4 100644 --- a/src/blogc-make/reloader.c +++ b/src/blogc-make/reloader.c @@ -42,7 +42,7 @@ bm_reloader_run(bm_ctx_t **ctx, bm_rule_exec_func_t rule_exec, struct sigaction current_action; if (sigaction(SIGINT, NULL, ¤t_action) < 0) { fprintf(stderr, "blogc-make: failed to run reloader: %s\n", strerror(errno)); - return 3; + return 1; } if (current_action.sa_handler != sig_handler) { // not installed yet // backup current handler @@ -58,7 +58,7 @@ bm_reloader_run(bm_ctx_t **ctx, bm_rule_exec_func_t rule_exec, if (sigaction(SIGINT, &new_action, NULL) < 0) { fprintf(stderr, "blogc-make: failed to run reloader: %s\n", strerror(errno)); - return 3; + return 1; } } |