summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2003-10-04 15:54:28 +0000
committerBob Beck <beck@cvs.openbsd.org>2003-10-04 15:54:28 +0000
commit3ab580ec87aa7f7b60523f84d1b7b34ec31f97cd (patch)
treed538d45a463c444891da0905d9e6495aa3ffc7a9
parent2255a69fa6a36a1e39b13d918b48fbfd1918770c (diff)
fix xfs_devpoll so it works.
ok millert@
-rw-r--r--sys/xfs/xfs_dev-bsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/xfs/xfs_dev-bsd.c b/sys/xfs/xfs_dev-bsd.c
index c2bfba5f685..b0ae2516079 100644
--- a/sys/xfs/xfs_dev-bsd.c
+++ b/sys/xfs/xfs_dev-bsd.c
@@ -108,7 +108,7 @@ xfs_devpoll(dev_t dev, int events, d_thread_t * p)
xfs_devtoname_r (dev, devname, sizeof(devname)),
events));
- if (!(events & POLLRDNORM))
+ if (!(events & (POLLIN | POLLRDNORM)))
return 0;
return xfs_realselect(dev, p, NULL);