Parcourir la source

Call pthread_detach() and spawning the purge.

default il y a 3 ans
Parent
commit
14a516b542
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      httpd.c

+ 1 - 0
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;