aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
Diffstat (limited to 'util-src')
-rw-r--r--util-src/poll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/poll.c b/util-src/poll.c
index c0a93b04..e782a44c 100644
--- a/util-src/poll.c
+++ b/util-src/poll.c
@@ -293,7 +293,7 @@ int Lwait(lua_State *L) {
tv.tv_sec = (time_t)timeout;
tv.tv_usec = ((suseconds_t)(timeout * 1000000)) % 1000000;
- ret = select(FD_SETSIZE, &state->readable, &state->writable, NULL, &tv);
+ ret = select(FD_SETSIZE, &state->readable, &state->writable, &state->err, &tv);
#endif
if(ret == 0) {