Remove last remnants of redbean repl thread

This commit is contained in:
Justine Tunney 2023-10-11 12:27:06 -07:00
parent 285c565051
commit 5cb9b2658c
No known key found for this signature in database
GPG key ID: BE714B4575D6E328

View file

@ -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();
}