From 5cb9b2658cef59c1ae5dabc551b9bd4640f132f8 Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Wed, 11 Oct 2023 12:27:06 -0700 Subject: [PATCH] Remove last remnants of redbean repl thread --- tool/net/redbean.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tool/net/redbean.c b/tool/net/redbean.c index c716d350f..1e1a7f126 100644 --- a/tool/net/redbean.c +++ b/tool/net/redbean.c @@ -506,7 +506,6 @@ static struct Strings hidepaths; static const char *launchbrowser; static const char ctIdx = 'c'; // a pseudo variable to get address of -static pthread_t replth; static pthread_t monitorth; static struct Buffer inbuf_actual; static struct Buffer inbuf; @@ -7447,12 +7446,6 @@ void RedBean(int argc, char *argv[]) { monitorth = 0; } } -#ifndef STATIC - if (replth) { - pthread_join(replth, 0); - replth = 0; - } -#endif HandleShutdown(); CallSimpleHookIfDefined("OnServerStop"); } @@ -7478,10 +7471,6 @@ int main(int argc, char *argv[]) { // 2. unwound worker exit if (IsModeDbg()) { if (isexitingworker) { - if (replth) { - pthread_join(replth, 0); - replth = 0; - } linenoiseDisableRawMode(); linenoiseHistoryFree(); }