From 14a516b542ead09b03e2f1ebb4eb661eacb1a8f4 Mon Sep 17 00:00:00 2001 From: default Date: Sat, 10 Dec 2022 17:15:26 +0100 Subject: [PATCH] Call pthread_detach() and spawning the purge. --- httpd.c | 1 + 1 file changed, 1 insertion(+) 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;