diff options
Diffstat (limited to 'src/select.c')
-rw-r--r-- | src/select.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/select.c b/src/select.c index 3c01b06..a92a2c5 100644 --- a/src/select.c +++ b/src/select.c | |||
@@ -64,7 +64,7 @@ static int global_select(lua_State *L) { | |||
64 | tm_init(&tm, t, -1); | 64 | tm_init(&tm, t, -1); |
65 | max_fd = collect_fd(L, 2, max_fd, itab, &wset); | 65 | max_fd = collect_fd(L, 2, max_fd, itab, &wset); |
66 | ret = sock_select(max_fd+1, &rset, &wset, NULL, &tm); | 66 | ret = sock_select(max_fd+1, &rset, &wset, NULL, &tm); |
67 | if (ret > 0 || (ret == 0 && ndirty > 0)) { | 67 | if (ret > 0 || ndirty > 0) { |
68 | return_fd(L, &rset, max_fd+1, itab, rtab, ndirty); | 68 | return_fd(L, &rset, max_fd+1, itab, rtab, ndirty); |
69 | return_fd(L, &wset, max_fd+1, itab, wtab, 0); | 69 | return_fd(L, &wset, max_fd+1, itab, wtab, 0); |
70 | make_assoc(L, rtab); | 70 | make_assoc(L, rtab); |