Call pthread_detach() and spawning the purge.

This commit is contained in:
default 2022-12-10 17:15:26 +01:00
parent bf3cfe24c9
commit 14a516b542

View file

@ -286,6 +286,7 @@ static void *queue_thread(void *arg)
pthread_t pth; pthread_t pth;
pthread_create(&pth, NULL, purge_thread, NULL); pthread_create(&pth, NULL, purge_thread, NULL);
pthread_detach(pth);
/* next purge time is tomorrow */ /* next purge time is tomorrow */
purge_time = t + 24 * 60 * 60; purge_time = t + 24 * 60 * 60;