diff options
-rw-r--r-- | trans/fifo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trans/fifo.c b/trans/fifo.c index a9ad2dd2..f52baba9 100644 --- a/trans/fifo.c +++ b/trans/fifo.c @@ -169,7 +169,7 @@ open_hook (struct trivfs_peropen *po) make us block because we've ensured that there's a reader for it. */ - if (wait_for_writer) + if (wait_for_writer && (!(flags & O_WRITE))) /* Wait until there's a writer. */ { WAIT (active_fifo->writers, 0); |