From 7efb6d5833c20a82ccb4bf2c89e5ce43831db540 Mon Sep 17 00:00:00 2001 From: default Date: Wed, 21 Sep 2022 18:13:11 +0200 Subject: [PATCH] New flag srv_running. --- httpd.c | 2 ++ snac.c | 1 + snac.h | 1 + 3 files changed, 4 insertions(+) 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;