return EBADF instead of successfully attaching (and then panicing) when

an fd is dieing..

Convinced by:	jhb
PR:		103127
This commit is contained in:
jmg 2006-09-24 02:29:53 +00:00
parent 689b605f8b
commit 08d150cea6

View File

@ -2632,7 +2632,7 @@ static int
badfo_kqfilter(struct file *fp, struct knote *kn)
{
return (0);
return (EBADF);
}
static int