Hi, The type variable was declared const, so here is a new version. (I find this resetting of type a bit strange, but it is what is used in the select case, so I copy it).
2001-10-28 Marcus Brinkmann <[EMAIL PROTECTED]> * hurd/hurdselect.c (_hurd_select): Set type to zero if SELECT_RETURNED is not set before filling in the `revents' members of the user's array. --- hurdselect.c.old Sun Oct 28 03:52:43 2001 +++ hurdselect.c Sun Oct 28 14:37:16 2001 @@ -395,8 +395,11 @@ /* Fill in the `revents' members of the user's array. */ for (i = 0; i < nfds; ++i) { - const int type = d[i].type; + int type = d[i].type; int_fast16_t revents = 0; + + if ((type & SELECT_RETURNED) == 0) + type = 0; if (type & SELECT_READ) revents |= POLLIN; -- `Rhubarb is no Egyptian god.' Debian http://www.debian.org [EMAIL PROTECTED] Marcus Brinkmann GNU http://www.gnu.org [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.marcus-brinkmann.de _______________________________________________ Bug-hurd mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-hurd