mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-14 17:45:04 +00:00
Call pthread_detach() and spawning the purge.
This commit is contained in:
parent
bf3cfe24c9
commit
14a516b542
1 changed files with 1 additions and 0 deletions
1
httpd.c
1
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;
|
||||
|
|
Loading…
Reference in a new issue