summaryrefslogtreecommitdiff
path: root/libpipe
diff options
context:
space:
mode:
Diffstat (limited to 'libpipe')
-rw-r--r--libpipe/pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpipe/pipe.c b/libpipe/pipe.c
index 036cc2f3..4e52ac04 100644
--- a/libpipe/pipe.c
+++ b/libpipe/pipe.c
@@ -108,7 +108,7 @@ void _pipe_no_readers (struct pipe *pipe)
if (! pipe_is_connless (pipe))
{
pipe->flags |= PIPE_BROKEN;
- if (pipe->readers)
+ if (pipe->writers)
/* Wake up writers for the bad news... */
{
condition_broadcast (&pipe->pending_writes);