Mercurial > prosody-hg
comparison util-src/poll.c @ 14186:d975d280baec
Merge 13.0->trunk
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 25 May 2026 19:01:23 +0100 |
| parents | a331cde41c85 |
| children | 75d09be04f13 |
comparison
equal
deleted
inserted
replaced
| 14168:4f4c346e4f39 | 14186:d975d280baec |
|---|---|
| 137 lua_pushboolean(L, 1); | 137 lua_pushboolean(L, 1); |
| 138 return 1; | 138 return 1; |
| 139 #endif | 139 #endif |
| 140 #ifdef USE_SELECT | 140 #ifdef USE_SELECT |
| 141 | 141 |
| 142 if(fd > FD_SETSIZE) { | 142 if(fd >= FD_SETSIZE) { |
| 143 luaL_pushfail(L); | 143 luaL_pushfail(L); |
| 144 lua_pushstring(L, strerror(EBADF)); | 144 lua_pushstring(L, strerror(EBADF)); |
| 145 lua_pushinteger(L, EBADF); | 145 lua_pushinteger(L, EBADF); |
| 146 return 3; | 146 return 3; |
| 147 } | 147 } |
