diff options
author | jmg <jmg@FreeBSD.org> | 2006-09-24 02:29:53 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 2006-09-24 02:29:53 +0000 |
commit | 08d150cea64d52d18374d306967feb39d63c4e64 (patch) | |
tree | dc10c81437f54ea9a943e9f5c8a1a02474be840b /sys | |
parent | 689b605f8bab05430d9aaca0c589ffdbccc5a57f (diff) | |
download | FreeBSD-src-08d150cea64d52d18374d306967feb39d63c4e64.zip FreeBSD-src-08d150cea64d52d18374d306967feb39d63c4e64.tar.gz |
return EBADF instead of successfully attaching (and then panicing) when
an fd is dieing..
Convinced by: jhb
PR: 103127
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_descrip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index c3e659a..b62c977 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -2632,7 +2632,7 @@ static int badfo_kqfilter(struct file *fp, struct knote *kn) { - return (0); + return (EBADF); } static int |