From fc8684cd46b48e187805f79db1715a5e6420c618 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Fri, 15 Aug 2003 04:31:01 +0000 Subject: [PATCH] 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 --- sys/kern/sys_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index 7d39b8c63740..e003d5e9d685 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -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);