瀏覽代碼

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;