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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118929
@ -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