New flag srv_running.

This commit is contained in:
default 2022-09-21 18:13:11 +02:00
parent 8e653d201f
commit 7efb6d5833
3 changed files with 4 additions and 0 deletions

View file

@ -42,6 +42,8 @@ void httpd(void)
return;
}
srv_running = 1;
srv_log(xs_fmt("httpd start %s:%d", address, port));
for (;;) {

1
snac.c
View file

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

1
snac.h
View file

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