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