[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 15/30: Fix opening a fifo with O_RDWR
From: |
Samuel Thibault |
Subject: |
[hurd] 15/30: Fix opening a fifo with O_RDWR |
Date: |
Tue, 22 Sep 2015 21:51:58 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit f62819106ede2d407c31d1bd71a4e87c6fe60484
Author: Samuel Thibault <address@hidden>
Date: Tue Sep 8 00:39:49 2015 +0200
Fix opening a fifo with O_RDWR
We should not wait for a writer in that case, since that will be ourself.
* trans/fifo.c (open_hook): Do not wait for a writer when flags contains
O_WRITE.
---
trans/fifo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/trans/fifo.c b/trans/fifo.c
index a9ad2dd..f52baba 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);
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 03/30: pflocal: fix receiver lookup, (continued)
- [hurd] 03/30: pflocal: fix receiver lookup, Samuel Thibault, 2015/09/22
- [hurd] 04/30: libports: clarify why we emulate protected payloads, Samuel Thibault, 2015/09/22
- [hurd] 06/30: Fake full file access only for faked nodes, Samuel Thibault, 2015/09/22
- [hurd] 05/30: Make fakeroot return file types from underly fs, Samuel Thibault, 2015/09/22
- [hurd] 07/30: ext2fs: improve ext2fs debugging, Samuel Thibault, 2015/09/22
- [hurd] 10/30: libdiskfs: fix typo, Samuel Thibault, 2015/09/22
- [hurd] 02/30: Print which path init tried to execv, Samuel Thibault, 2015/09/22
- [hurd] 11/30: libdiskfs: add missing declarations, Samuel Thibault, 2015/09/22
- [hurd] 08/30: ext2fs: provide unconditional debug macro, Samuel Thibault, 2015/09/22
- [hurd] 16/30: Make procfs accept none or proc as "device", Samuel Thibault, 2015/09/22
- [hurd] 15/30: Fix opening a fifo with O_RDWR,
Samuel Thibault <=
- [hurd] 09/30: libdiskfs: fix parent lookup in the name cache, Samuel Thibault, 2015/09/22
- [hurd] 17/30: Also do not realpath "proc" pseudo-device, Samuel Thibault, 2015/09/22
- [hurd] 13/30: Fix build against glibc 2.21, Samuel Thibault, 2015/09/22
- [hurd] 18/30: umount: Do not report errors on making the device go away, Samuel Thibault, 2015/09/22
- [hurd] 20/30: libshouldbeinlibc/maptime: use memory fences, Samuel Thibault, 2015/09/22
- [hurd] 21/30: Do not install libtrivfs mig stub headers, Samuel Thibault, 2015/09/22
- [hurd] 22/30: Install port-deref-deferred.h header for ports.h, Samuel Thibault, 2015/09/22
- [hurd] 19/30: pflocal: avoid nested function, Samuel Thibault, 2015/09/22
- [hurd] 24/30: Fix closure of local server sockets, Samuel Thibault, 2015/09/22
- [hurd] 23/30: Fix sock_bind(sock,NULL) support, Samuel Thibault, 2015/09/22