From ec2d6bc4a485e2b928ca626a56662de5f8603766 Mon Sep 17 00:00:00 2001 From: default Date: Wed, 9 Nov 2022 16:09:12 +0100 Subject: [PATCH] Call pthread_detach(). --- httpd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/httpd.c b/httpd.c index 726cb37..85d4b71 100644 --- a/httpd.c +++ b/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);