summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-12-10 17:15:26 +0100
committerdefault <nobody@localhost>2022-12-10 17:15:26 +0100
commit14a516b542ead09b03e2f1ebb4eb661eacb1a8f4 (patch)
treed16afa27a16dc28d4d50712f6127abcfe9548972 /httpd.c
parentbf3cfe24c96a6266e3b0cbcf0f88f16ca84355eb (diff)
Call pthread_detach() and spawning the purge.
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/httpd.c b/httpd.c
index 7d76084..ae49189 100644
--- a/httpd.c
+++ b/httpd.c
@@ -286,6 +286,7 @@ static void *queue_thread(void *arg)
pthread_t pth;
pthread_create(&pth, NULL, purge_thread, NULL);
+ pthread_detach(pth);
/* next purge time is tomorrow */
purge_time = t + 24 * 60 * 60;