Ver Fonte

Call pthread_detach().

default há 3 anos atrás
pai
commit
ec2d6bc4a4
1 ficheiros alterados com 1 adições e 0 exclusões
  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);