Преглед на файлове

Call pthread_detach() and spawning the purge.

default преди 3 години
родител
ревизия
14a516b542
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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;