diff options
Diffstat (limited to 'sys/kern/tty_cons.c')
-rw-r--r-- | sys/kern/tty_cons.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c index 54a287c..dd8a115 100644 --- a/sys/kern/tty_cons.c +++ b/sys/kern/tty_cons.c @@ -528,11 +528,11 @@ cnkqfilter(struct cdev *dev, struct knote *kn) cnd = STAILQ_FIRST(&cn_devlist); if (cn_mute || CND_INVALID(cnd, curthread)) - return (1); + return (EINVAL); dev = cnd->cnd_vp->v_rdev; if (dev != NULL) return ((*devsw(dev)->d_kqfilter)(dev, kn)); - return (1); + return (ENXIO); } /* |