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

an fd is dieing..

Convinced by:	jhb
PR:		103127
This commit is contained in:
John-Mark Gurney 2006-09-24 02:29:53 +00:00
parent 9edac6f3f9
commit aeab19b21f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=162593

View File

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