From 2b16ccbaf8a43d83bc963700cc91c80b762b0a4a Mon Sep 17 00:00:00 2001 From: LDA Date: Sat, 22 Jun 2024 02:16:40 +0200 Subject: [PATCH] [MOD] Apologise. Sorry, Jordan. --- src/Main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Main.c b/src/Main.c index 2b9da00..5bb50b4 100644 --- a/src/Main.c +++ b/src/Main.c @@ -112,6 +112,7 @@ Main(void) sigfillset(&sigAction.sa_mask); sigAction.sa_flags = SA_RESTART; + /* TODO: I stole that from Telodendria. Sorry, Jordan! */ #define SIGACTION(sig, act, oact) \ if (sigaction(sig, act, oact) < 0) \ { \ @@ -127,8 +128,8 @@ Main(void) SIGACTION(SIGTERM, &sigAction, NULL); SIGACTION(SIGPIPE, &sigAction, NULL); SIGACTION(SIGUSR1, &sigAction, NULL); - #undef SIGACTION + server = HttpServerCreate(&conf); HttpServerStart(server); LogConfigUnindent(LogConfigGlobal());