summaryrefslogtreecommitdiff
path: root/libpipe
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-08-29 23:16:28 +0000
committerMiles Bader <miles@gnu.org>1995-08-29 23:16:28 +0000
commit444cda60f596ba1769d407bf3e95f7ec8f1a7c8c (patch)
tree316db8ebc7f36035e1673ba7de48395bd5bd6b3d /libpipe
parenta86d03817f7355fbf522b2f9588479f40a3ff2e2 (diff)
(pipe_send): Use condition_broadcast, not condition_signal.
Diffstat (limited to 'libpipe')
-rw-r--r--libpipe/pipe.c4
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. */
}