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/httpd.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/httpd.c')
-rw-r--r-- | src/blogc-make/httpd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/blogc-make/httpd.c b/src/blogc-make/httpd.c index 8795a86..adf9a9b 100644 --- a/src/blogc-make/httpd.c +++ b/src/blogc-make/httpd.c @@ -65,7 +65,7 @@ bm_httpd_run(bm_ctx_t **ctx, bm_rule_exec_func_t rule_exec, bc_slist_t *outputs, if (0 != (err = pthread_attr_init(&attr))) { fprintf(stderr, "blogc-make: error: failed to initialize httpd " "thread attributes: %s\n", strerror(err)); - return 3; + return 1; } // we run the thread detached, because we don't want to wait it to join @@ -73,7 +73,7 @@ bm_httpd_run(bm_ctx_t **ctx, bm_rule_exec_func_t rule_exec, bc_slist_t *outputs, if (0 != (err = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED))) { fprintf(stderr, "blogc-make: error: failed to mark httpd thread as " "detached: %s\n", strerror(err)); - return 3; + return 1; } bm_httpd_t *rv = bc_malloc(sizeof(bm_httpd_t)); @@ -85,7 +85,7 @@ bm_httpd_run(bm_ctx_t **ctx, bm_rule_exec_func_t rule_exec, bc_slist_t *outputs, fprintf(stderr, "blogc-make: error: failed to create httpd " "thread: %s\n", strerror(err)); free(rv); - return 3; + return 1; } // run the reloader |