mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-01 00:38:31 +00:00
Disable redbean repl on windows
This commit is contained in:
parent
4a6a34db83
commit
80308079ec
2 changed files with 30 additions and 23 deletions
|
@ -6830,7 +6830,6 @@ static int EventLoop(int fd, int ms) {
|
|||
int rc;
|
||||
long double t;
|
||||
rc = -1;
|
||||
polls[0].fd = 0;
|
||||
while (!terminated) {
|
||||
errno = 0;
|
||||
if (zombied) {
|
||||
|
@ -6848,13 +6847,13 @@ static int EventLoop(int fd, int ms) {
|
|||
break; // return control to linenoise
|
||||
}
|
||||
}
|
||||
polls[0].fd = -1;
|
||||
return rc;
|
||||
}
|
||||
|
||||
static void ReplEventLoop(void) {
|
||||
int status;
|
||||
lua_State *L = GL;
|
||||
polls[0].fd = 0;
|
||||
__nomultics = 2;
|
||||
__replmode = true;
|
||||
lua_initrepl("redbean");
|
||||
|
@ -7096,7 +7095,7 @@ void RedBean(int argc, char *argv[]) {
|
|||
#ifdef STATIC
|
||||
EventLoop();
|
||||
#else
|
||||
if (isatty(0)) {
|
||||
if (!IsWindows() && isatty(0)) {
|
||||
ReplEventLoop();
|
||||
} else {
|
||||
EventLoop(-1, HEARTBEAT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue