Refactor, move registration of static services to conf_init()

All services registered in the system rely on conf_init() having been
set up properly, e.g., global_rlimit.  Having conf_init() be responsible
also for registering static services is only logical, and also helps us
clean up main() a bit.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2023-02-05 01:15:49 +01:00
1 parent 82dfa002ff
commit e9515971ea
5 files changed
+15 -18

No files matched your search

-1
View File
@@ -50,7 +50,6 @@
#include "sig.h"
#include "util.h"
extern svc_t *wdog;
static uev_t api_watcher;
static int call(int (*action)(svc_t *, void *), char *buf, size_t len)