diff options
author | Miles Bader <miles@gnu.org> | 1995-09-14 18:24:58 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-09-14 18:24:58 +0000 |
commit | 66155f5ecb83b3f8610733c3f4493fcec808e539 (patch) | |
tree | 2a217396c5863c2e9e87c0a2cc8de43d51d95cda /libpipe | |
parent | f49269698da5588b1fa5c6cf9fc550094d20e174 (diff) |
(_pipe_no_readers): REALLY wake up writers when the pipe breaks.
Diffstat (limited to 'libpipe')
-rw-r--r-- | libpipe/pipe.c | 2 |
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); |