mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 19:55:10 +00:00
[MOD] Apologise.
Sorry, Jordan.
This commit is contained in:
parent
a84ce05b9d
commit
2b16ccbaf8
1 changed files with 2 additions and 1 deletions
|
|
@ -112,6 +112,7 @@ Main(void)
|
||||||
sigfillset(&sigAction.sa_mask);
|
sigfillset(&sigAction.sa_mask);
|
||||||
sigAction.sa_flags = SA_RESTART;
|
sigAction.sa_flags = SA_RESTART;
|
||||||
|
|
||||||
|
/* TODO: I stole that from Telodendria. Sorry, Jordan! */
|
||||||
#define SIGACTION(sig, act, oact) \
|
#define SIGACTION(sig, act, oact) \
|
||||||
if (sigaction(sig, act, oact) < 0) \
|
if (sigaction(sig, act, oact) < 0) \
|
||||||
{ \
|
{ \
|
||||||
|
|
@ -127,8 +128,8 @@ Main(void)
|
||||||
SIGACTION(SIGTERM, &sigAction, NULL);
|
SIGACTION(SIGTERM, &sigAction, NULL);
|
||||||
SIGACTION(SIGPIPE, &sigAction, NULL);
|
SIGACTION(SIGPIPE, &sigAction, NULL);
|
||||||
SIGACTION(SIGUSR1, &sigAction, NULL);
|
SIGACTION(SIGUSR1, &sigAction, NULL);
|
||||||
|
|
||||||
#undef SIGACTION
|
#undef SIGACTION
|
||||||
|
|
||||||
server = HttpServerCreate(&conf);
|
server = HttpServerCreate(&conf);
|
||||||
HttpServerStart(server);
|
HttpServerStart(server);
|
||||||
LogConfigUnindent(LogConfigGlobal());
|
LogConfigUnindent(LogConfigGlobal());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue