diff --git a/httpd.c b/httpd.c index d849c98..3d4975e 100644 --- a/httpd.c +++ b/httpd.c @@ -42,6 +42,8 @@ void httpd(void) return; } + srv_running = 1; + srv_log(xs_fmt("httpd start %s:%d", address, port)); for (;;) { diff --git a/snac.c b/snac.c index fc1fe7b..512804a 100644 --- a/snac.c +++ b/snac.c @@ -20,6 +20,7 @@ d_char *srv_basedir = NULL; d_char *srv_config = NULL; d_char *srv_baseurl = NULL; +int srv_running = 0; int dbglevel = 0; diff --git a/snac.h b/snac.h index 1789929..ee5cd22 100644 --- a/snac.h +++ b/snac.h @@ -4,6 +4,7 @@ extern d_char *srv_basedir; extern d_char *srv_config; extern d_char *srv_baseurl; +extern int srv_running; extern int dbglevel;