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:
parent
5466a9cb4c
commit
fc8684cd46
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user