When calling poll() on a fd associated with a filesystem, let POLLIN/POLLOUT
behave identically to POLLRDNORM/POLLWRNORM. Submitted by: bde PR: 27287 merge after: 1 week
This commit is contained in:
parent
a81a52f5a1
commit
97f6754ff1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76578
@ -330,9 +330,9 @@ vop_stdpoll(ap)
|
||||
struct proc *a_p;
|
||||
} */ *ap;
|
||||
{
|
||||
if ((ap->a_events & ~POLLSTANDARD) == 0)
|
||||
return (ap->a_events & (POLLRDNORM|POLLWRNORM));
|
||||
return (vn_pollrecord(ap->a_vp, ap->a_p, ap->a_events));
|
||||
if (ap->a_events & ~POLLSTANDARD)
|
||||
return (vn_pollrecord(ap->a_vp, ap->a_p, ap->a_events));
|
||||
return (ap->a_events & (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user