ソースを参照

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_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;