summaryrefslogtreecommitdiff
path: root/libpipe
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-09-14 18:24:58 +0000
committerMiles Bader <miles@gnu.org>1995-09-14 18:24:58 +0000
commit66155f5ecb83b3f8610733c3f4493fcec808e539 (patch)
tree2a217396c5863c2e9e87c0a2cc8de43d51d95cda /libpipe
parentf49269698da5588b1fa5c6cf9fc550094d20e174 (diff)
(_pipe_no_readers): REALLY wake up writers when the pipe breaks.
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);