Select wasn't calling tm_markstart.

This commit is contained in:
Diego Nehab 2004-09-21 18:59:19 +00:00
parent eba5f22437
commit e1d318f26c

View File

@ -62,6 +62,7 @@ static int global_select(lua_State *L) {
ndirty = check_dirty(L, 1, rtab, &rset);
t = ndirty > 0? 0.0: t;
tm_init(&tm, t, -1);
tm_markstart(&tm);
max_fd = collect_fd(L, 2, max_fd, itab, &wset);
ret = sock_select(max_fd+1, &rset, &wset, NULL, &tm);
if (ret > 0 || ndirty > 0) {