From 0dca4c5799fef037afc53b92d839a659949cd871 Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Thu, 21 Apr 2022 16:17:48 -0700 Subject: [PATCH] Improve redbean ctrl-d handling --- tool/net/redbean.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/net/redbean.c b/tool/net/redbean.c index ec74a20d7..7374d4954 100644 --- a/tool/net/redbean.c +++ b/tool/net/redbean.c @@ -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;