summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-11-09 16:09:12 +0100
committerdefault <nobody@localhost>2022-11-09 16:09:12 +0100
commitec2d6bc4a485e2b928ca626a56662de5f8603766 (patch)
tree475d5d729a1f741269d885eacfd9e13ecff51862
parent80780998bdf80fbae9541bdf61b874dcec9dea19 (diff)
Call pthread_detach().
-rw-r--r--httpd.c1
1 files changed, 1 insertions, 0 deletions
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);