From c43aa85d84a3f9721a126689add6a644c30ed9f0 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 12 Oct 2018 03:22:09 +0200 Subject: net.server_epoll: Special handling of signal interrupts --- util-src/poll.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'util-src') diff --git a/util-src/poll.c b/util-src/poll.c index e5b5f70c..0ca0cf28 100644 --- a/util-src/poll.c +++ b/util-src/poll.c @@ -316,6 +316,11 @@ int Lwait(lua_State *L) { lua_pushstring(L, "timeout"); return 2; } + else if(ret < 0 && errno == EINTR) { + lua_pushnil(L); + lua_pushstring(L, "signal"); + return 2; + } else if(ret < 0) { ret = errno; lua_pushnil(L); -- cgit v1.2.3