diff options
author | Miles Bader <miles@gnu.org> | 1995-08-29 23:16:28 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-08-29 23:16:28 +0000 |
commit | 444cda60f596ba1769d407bf3e95f7ec8f1a7c8c (patch) | |
tree | 316db8ebc7f36035e1673ba7de48395bd5bd6b3d /libpipe/pipe.c | |
parent | a86d03817f7355fbf522b2f9588479f40a3ff2e2 (diff) |
(pipe_send): Use condition_broadcast, not condition_signal.
Diffstat (limited to 'libpipe/pipe.c')
-rw-r--r-- | libpipe/pipe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpipe/pipe.c b/libpipe/pipe.c index ef1042b6..17f9cda7 100644 --- a/libpipe/pipe.c +++ b/libpipe/pipe.c @@ -162,14 +162,14 @@ pipe_send (struct pipe *pipe, void *source, timestamp (&pipe->write_time); /* And wakeup anyone that might be interested in it. */ - condition_signal (&pipe->pending_reads); + condition_broadcast (&pipe->pending_reads); mutex_unlock (&pipe->lock); mutex_lock (&pipe->lock); /* Get back the lock on PIPE. */ /* Only wakeup selects if there's still data available. */ if (pipe_is_readable (pipe, 0)) { - condition_signal (&pipe->pending_selects); + condition_broadcast (&pipe->pending_selects); /* We leave PIPE locked here, assuming the caller will soon unlock it and allow others access. */ } |