Improve redbean ctrl-d handling

This commit is contained in:
Justine Tunney 2022-04-21 16:17:48 -07:00
parent c39d6111f2
commit 0dca4c5799

View file

@ -6995,7 +6995,7 @@ static void ReplEventLoop(void) {
linenoiseSetPollCallback(EventLoop);
for (;;) {
if ((status = lua_loadline(L)) == -1) {
if (errno = EINTR) {
if (errno == EINTR) {
LockInc(&shared->c.pollinterrupts);
if (terminated) {
break;