Browse Source

Call pthread_detach().

default 3 years ago
parent
commit
ec2d6bc4a4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      httpd.c

+ 1 - 0
httpd.c

@@ -319,6 +319,7 @@ void httpd(void)
                 pthread_t cth;
 
                 pthread_create(&cth, NULL, connection_thread, f);
+                pthread_detach(cth);
             }
             else
                 httpd_connection(f);