summaryrefslogtreecommitdiff
path: root/sys/kern/sys_pipe.c
diff options
context:
space:
mode:
authorJohn-Mark Gurney <jmg@FreeBSD.org>2003-08-15 04:31:01 +0000
committerJohn-Mark Gurney <jmg@FreeBSD.org>2003-08-15 04:31:01 +0000
commitfc8684cd46b48e187805f79db1715a5e6420c618 (patch)
treed2081122c6f99ed1495dcb5b20664e442404affc /sys/kern/sys_pipe.c
parent5466a9cb4c5a23e080c2a10ade50ee1a64767bd5 (diff)
Notes
Diffstat (limited to 'sys/kern/sys_pipe.c')
-rw-r--r--sys/kern/sys_pipe.c2
1 files changed, 1 insertions, 1 deletions
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);