From 4a69536e72f921a53fe00ae2e7464dab8bee42de Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 21 Aug 1995 18:44:57 +0000 Subject: (open_hook): Use condition_broadcast instead of condition_signal on active_fifo_changed, as all waiters need be notified of changes. --- trans/fifo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'trans/fifo.c') 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); } } -- cgit v1.2.3