summaryrefslogtreecommitdiff
path: root/trans/fifo.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-08-21 18:44:57 +0000
committerMiles Bader <miles@gnu.org>1995-08-21 18:44:57 +0000
commit4a69536e72f921a53fe00ae2e7464dab8bee42de (patch)
tree759c8d12dd14351f6f22b6f134a6652be3e2bc9e /trans/fifo.c
parent555d3b8e5105f9945142a97d57d3ef56b1cb086d (diff)
(open_hook): Use condition_broadcast instead of condition_signal on
active_fifo_changed, as all waiters need be notified of changes.
Diffstat (limited to 'trans/fifo.c')
-rw-r--r--trans/fifo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/trans/fifo.c b/trans/fifo.c
index e1cf096d..60e44b5b 100644
--- a/trans/fifo.c
+++ b/trans/fifo.c
@@ -175,7 +175,7 @@ open_hook (struct trivfs_peropen *po)
if (!err)
{
pipe_add_reader (active_fifo);
- condition_signal (&active_fifo_changed);
+ condition_broadcast (&active_fifo_changed);
/* We'll unlock ACTIVE_FIFO_LOCK below; the writer code won't make
us block because we've ensured that there's a reader for it. */
}
@@ -241,7 +241,7 @@ close_hook (struct trivfs_peropen *po)
{
if (going_away)
active_fifo = NULL;
- condition_signal (&active_fifo_changed);
+ condition_broadcast (&active_fifo_changed);
mutex_unlock (&active_fifo_lock);
}
}