]> Zhao Yanbai Git Server - minix.git/commitdiff
Initialize deferred field. This seems to fix a hanging select() bug.
authorBen Gras <ben@minix3.org>
Wed, 17 Dec 2008 14:20:08 +0000 (14:20 +0000)
committerBen Gras <ben@minix3.org>
Wed, 17 Dec 2008 14:20:08 +0000 (14:20 +0000)
servers/vfs/select.c

index 21d9802ea803f2c301ce87d4f118cd153d0b84b8..0a97420f2c783d3ae4b349c65a2efeb58a069b89 100644 (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;