aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-make/rules.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2017-07-23 02:02:40 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2017-07-23 02:02:40 +0200
commit1a6adf3f518e168c433b976ca786216f24474737 (patch)
tree90365cbdb13c2d01d9c0c5aed1770af09c419842 /src/blogc-make/rules.c
parent9e389acba1074202ceb1a6f691a6a6ad6ef5d787 (diff)
downloadblogc-1a6adf3f518e168c433b976ca786216f24474737.tar.gz
blogc-1a6adf3f518e168c433b976ca786216f24474737.tar.bz2
blogc-1a6adf3f518e168c433b976ca786216f24474737.zip
make: rules: do not run httpd if reloader failed to start
Diffstat (limited to 'src/blogc-make/rules.c')
-rw-r--r--src/blogc-make/rules.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/blogc-make/rules.c b/src/blogc-make/rules.c
index 81fda35..dd59d51 100644
--- a/src/blogc-make/rules.c
+++ b/src/blogc-make/rules.c
@@ -543,6 +543,9 @@ static int
runserver_exec(bm_ctx_t *ctx, bc_slist_t *outputs, bc_trie_t *args)
{
bm_reloader_t *reloader = bm_reloader_new(ctx, all_exec, outputs, args);
+ if (reloader == NULL) {
+ return 3;
+ }
int rv = bm_exec_blogc_runserver(ctx, bc_trie_lookup(args, "host"),
bc_trie_lookup(args, "port"), bc_trie_lookup(args, "threads"));