diff options
author | Kim Alvefur <zash@zash.se> | 2018-10-12 03:22:09 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-10-12 03:22:09 +0200 |
commit | c43aa85d84a3f9721a126689add6a644c30ed9f0 (patch) | |
tree | 8025d448365b2e79271bf088c41bb0afe8720b0d /util-src | |
parent | 906bc714b636f475caf7960922ba75c75a0395e7 (diff) | |
download | prosody-c43aa85d84a3f9721a126689add6a644c30ed9f0.tar.gz prosody-c43aa85d84a3f9721a126689add6a644c30ed9f0.zip |
net.server_epoll: Special handling of signal interrupts
Diffstat (limited to 'util-src')
-rw-r--r-- | util-src/poll.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |