Initialize deferred field. This seems to fix a hanging select() bug.

This commit is contained in:
Ben Gras 2008-12-17 14:20:08 +00:00
parent 2528a06954
commit 834d9d34e8

View File

@ -253,6 +253,7 @@ PUBLIC int do_select(void)
if (s >= MAXSELECTS)
return ENOSPC;
selecttab[s].deferred= FALSE;
selecttab[s].req_endpt = who_e;
selecttab[s].nfds = 0;
selecttab[s].nreadyfds = 0;