commit 14a516b

default  ·  2022-12-10 16:15:26 +0000 UTC
parent bf3cfe2
Call pthread_detach() and spawning the purge.
1 files changed,  +1, -0
+1, -0
1@@ -286,6 +286,7 @@ static void *queue_thread(void *arg)
2             pthread_t pth;
3 
4             pthread_create(&pth, NULL, purge_thread, NULL);
5+            pthread_detach(pth);
6 
7             /* next purge time is tomorrow */
8             purge_time = t + 24 * 60 * 60;