From: Ben Gras Date: Wed, 17 Dec 2008 14:20:08 +0000 (+0000) Subject: Initialize deferred field. This seems to fix a hanging select() bug. X-Git-Tag: v3.1.4~167 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=834d9d34e87462c75344f23c7770d843b56d2e92;p=minix.git Initialize deferred field. This seems to fix a hanging select() bug. --- diff --git a/servers/vfs/select.c b/servers/vfs/select.c index 21d9802ea..0a97420f2 100644 --- a/servers/vfs/select.c +++ b/servers/vfs/select.c @@ -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;