Fix MODE=tinylinux build

This commit is contained in:
Justine Tunney 2023-10-13 08:30:18 -07:00
parent 4bcb107cb0
commit 0e0398cd5d
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
2 changed files with 10 additions and 3 deletions

View file

@ -4823,6 +4823,7 @@ static int LuaBlackhole(lua_State *L) {
wontreturn static void Replenisher(void) {
struct timespec ts;
VERBOSEF("(token) replenish worker started");
strace_enabled(-1);
signal(SIGINT, OnTerm);
signal(SIGHUP, OnTerm);
signal(SIGTERM, OnTerm);
@ -7149,7 +7150,7 @@ static void ReplEventLoop(void) {
lua_repl_completions_callback = HandleCompletions;
lua_initrepl(L);
EnableRawMode();
EventLoop(100);
EventLoop(-1);
DisableRawMode();
lua_freerepl();
lua_settop(L, 0); // clear stack