changeset 9478 | 9b26a50cdfe3 |
parent 9453 | b890ceb1c24f |
child 9479 | f3935aa4cc7e |
--- a/util-src/poll.c Thu Oct 11 17:01:45 2018 +0200 +++ b/util-src/poll.c Thu Oct 11 18:50:04 2018 +0200 @@ -351,6 +351,10 @@ int Lgc(lua_State *L) { struct Lpoll_state *state = luaL_checkudata(L, 1, STATE_MT); + if(state->epoll_fd != -1) { + return 0; + } + if(close(state->epoll_fd) == 0) { state->epoll_fd = -1; }