summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Lemon <jlemon@FreeBSD.org>2000-09-14 20:10:19 +0000
committerJonathan Lemon <jlemon@FreeBSD.org>2000-09-14 20:10:19 +0000
commit6f451c99b37388fddd27da5e15cc1bc3a681b8b1 (patch)
tree4f1e67d89399cec4ca3e4a006497a3d2c7d81976
parent07ef427609ea70cc8e829d2cbecd211959f28fdb (diff)
Notes
-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 40d47e46a6d3..7600ffdca736 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -1222,7 +1222,7 @@ filt_pipewrite(struct knote *kn, long hint)
return (1);
}
kn->kn_data = wpipe->pipe_buffer.size - wpipe->pipe_buffer.cnt;
- if ((wpipe->pipe_state & PIPE_DIRECTW) == 0)
+ if (wpipe->pipe_state & PIPE_DIRECTW)
kn->kn_data = 0;
return (kn->kn_data >= PIPE_BUF);