diff options
author | Roland McGrath <roland@gnu.org> | 2001-05-26 18:17:18 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-05-26 18:17:18 +0000 |
commit | 37f9faea8ded29aa414bfd251c4d43cb3219835a (patch) | |
tree | a312ae2a420dff250d3f735607c38ee13681d0e0 | |
parent | 1cdc8c28d051eb4564c2ced70e17384444a8e1f4 (diff) |
2001-05-26 Roland McGrath <roland@frob.com>
* users.c (trivfs_S_io_select): Don't diagnose an error for *TYPE
containing irrelevant bits (i.e. SELECT_URG). It's always ok to
ask even when the answer is always no.
-rw-r--r-- | term/users.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/term/users.c b/term/users.c index 1265b2fe..9d103013 100644 --- a/term/users.c +++ b/term/users.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1995,96,97,98,99,2000 Free Software Foundation, Inc. + Copyright (C) 1995,96,97,98,99,2000,01 Free Software Foundation, Inc. Written by Michael I. Bushnell, p/BSG. This file is part of the GNU Hurd. @@ -2009,8 +2009,7 @@ trivfs_S_io_select (struct trivfs_protid *cred, return pty_io_select (cred, reply, type, idtag); /* We don't deal with SELECT_URG here. */ - if (*type & ~(SELECT_READ | SELECT_WRITE)) - return EINVAL; + *type &= (SELECT_READ | SELECT_WRITE); available = 0; if (*type == 0) |