diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-04-03 08:08:52 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-04-03 08:08:52 +0000 |
commit | 2b9bba8ce9d374438f0a9fe315e8d8704caf13f9 (patch) | |
tree | 2756cbd39623e5f0c9ac1939418d9d0dfc0ca29e /sys/miscfs/fuse | |
parent | 3e35cc57fdb0b5a6a4b6c19c96d78892513314cf (diff) |
Return POLLERR instead of EINVAL in fusepoll().
ok kettenis@
Diffstat (limited to 'sys/miscfs/fuse')
-rw-r--r-- | sys/miscfs/fuse/fuse_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/miscfs/fuse/fuse_device.c b/sys/miscfs/fuse/fuse_device.c index 54fc666a4cc..e28d5951878 100644 --- a/sys/miscfs/fuse/fuse_device.c +++ b/sys/miscfs/fuse/fuse_device.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fuse_device.c,v 1.31 2020/02/20 16:56:52 visa Exp $ */ +/* $OpenBSD: fuse_device.c,v 1.32 2020/04/03 08:08:51 mpi Exp $ */ /* * Copyright (c) 2012-2013 Sylvestre Gallon <ccna.syl@gmail.com> * @@ -523,7 +523,7 @@ fusepoll(dev_t dev, int events, struct proc *p) fd = fuse_lookup(minor(dev)); if (fd == NULL) - return (EINVAL); + return (POLLERR); if (events & (POLLIN | POLLRDNORM)) if (!SIMPLEQ_EMPTY(&fd->fd_fbufs_in)) |