Parcourir la source

Call pthread_detach().

default il y a 3 ans
Parent
commit
ec2d6bc4a4
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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);