if we got this far, we definately don't have an EBADF. Return a more

sane result of EPIPE.

Reported by:	nCircle dev team
MFC after:	3 day
This commit is contained in:
John-Mark Gurney 2003-08-15 04:31:01 +00:00
parent 5466a9cb4c
commit fc8684cd46
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118929

View File

@ -1487,7 +1487,7 @@ pipe_kqfilter(struct file *fp, struct knote *kn)
cpipe = cpipe->pipe_peer;
if (cpipe == NULL)
/* other end of pipe has been closed */
return (EBADF);
return (EPIPE);
break;
default:
return (1);