mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 06:53:33 +00:00
Remove last remnants of redbean repl thread
This commit is contained in:
parent
285c565051
commit
5cb9b2658c
1 changed files with 0 additions and 11 deletions
|
@ -506,7 +506,6 @@ static struct Strings hidepaths;
|
||||||
static const char *launchbrowser;
|
static const char *launchbrowser;
|
||||||
static const char ctIdx = 'c'; // a pseudo variable to get address of
|
static const char ctIdx = 'c'; // a pseudo variable to get address of
|
||||||
|
|
||||||
static pthread_t replth;
|
|
||||||
static pthread_t monitorth;
|
static pthread_t monitorth;
|
||||||
static struct Buffer inbuf_actual;
|
static struct Buffer inbuf_actual;
|
||||||
static struct Buffer inbuf;
|
static struct Buffer inbuf;
|
||||||
|
@ -7447,12 +7446,6 @@ void RedBean(int argc, char *argv[]) {
|
||||||
monitorth = 0;
|
monitorth = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifndef STATIC
|
|
||||||
if (replth) {
|
|
||||||
pthread_join(replth, 0);
|
|
||||||
replth = 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
HandleShutdown();
|
HandleShutdown();
|
||||||
CallSimpleHookIfDefined("OnServerStop");
|
CallSimpleHookIfDefined("OnServerStop");
|
||||||
}
|
}
|
||||||
|
@ -7478,10 +7471,6 @@ int main(int argc, char *argv[]) {
|
||||||
// 2. unwound worker exit
|
// 2. unwound worker exit
|
||||||
if (IsModeDbg()) {
|
if (IsModeDbg()) {
|
||||||
if (isexitingworker) {
|
if (isexitingworker) {
|
||||||
if (replth) {
|
|
||||||
pthread_join(replth, 0);
|
|
||||||
replth = 0;
|
|
||||||
}
|
|
||||||
linenoiseDisableRawMode();
|
linenoiseDisableRawMode();
|
||||||
linenoiseHistoryFree();
|
linenoiseHistoryFree();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue