[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 46/87: libpipe: fix spurious calls to pipe_send
From: |
Samuel Thibault |
Subject: |
[hurd] 46/87: libpipe: fix spurious calls to pipe_send |
Date: |
Sun, 09 Nov 2014 11:05:03 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 2588cd19e83ff454a7fc99e68f1d612945504b72
Author: Richard Braun <address@hidden>
Date: Mon Jun 30 21:28:19 2014 +0200
libpipe: fix spurious calls to pipe_send
* libpipe/pipe.c (pipe_send): Skip processing if there is nothing to send.
---
libpipe/pipe.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/libpipe/pipe.c b/libpipe/pipe.c
index f9300e7..b7ee851 100644
--- a/libpipe/pipe.c
+++ b/libpipe/pipe.c
@@ -316,7 +316,11 @@ pipe_send (struct pipe *pipe, int noblock, void *source,
mach_port_t *ports, size_t num_ports,
size_t *amount)
{
- error_t err = 0;
+ error_t err;
+
+ /* Nothing to do. */
+ if (data_len == 0 && control_len == 0 && num_ports == 0)
+ return 0;
err = pipe_wait_writable (pipe, noblock);
if (err)
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 40/87: libdiskfs: add permission check to file_chflags, (continued)
- [hurd] 40/87: libdiskfs: add permission check to file_chflags, Samuel Thibault, 2014/11/09
- [hurd] 31/87: Merge branch 'merge-random', Samuel Thibault, 2014/11/09
- [hurd] 41/87: libdiskfs: expose the ST_NOATIME flag, Samuel Thibault, 2014/11/09
- [hurd] 43/87: ext2fs: use correct type for block numbers, Samuel Thibault, 2014/11/09
- [hurd] 42/87: libdiskfs: fix deadlock, Samuel Thibault, 2014/11/09
- [hurd] 44/87: libpipe: fix calls to pipe_send with no data, Samuel Thibault, 2014/11/09
- [hurd] 24/87: ext2fs: fix type of retry_dotdot, Samuel Thibault, 2014/11/09
- [hurd] 23/87: ext2fs: fix type of blockaddr, Samuel Thibault, 2014/11/09
- [hurd] 30/87: utils/settrans: implement settrans --start, Samuel Thibault, 2014/11/09
- [hurd] 25/87: Prepare the random translator to be merged into the Hurd sources, Samuel Thibault, 2014/11/09
- [hurd] 46/87: libpipe: fix spurious calls to pipe_send,
Samuel Thibault <=
- [hurd] 48/87: Make settrans return value returned by chroot command, Samuel Thibault, 2014/11/09
- [hurd] 51/87: Fix ifsock permission check, Samuel Thibault, 2014/11/09
- [hurd] 55/87: libihash: fix comparison between signed and unsigned integer, Samuel Thibault, 2014/11/09
- [hurd] 54/87: trans/mtab: use setnullauth to drop privileges, Samuel Thibault, 2014/11/09
- [hurd] 21/87: ext2fs: fix compiler warning, Samuel Thibault, 2014/11/09
- [hurd] 49/87: Add missing linefeed, Samuel Thibault, 2014/11/09
- [hurd] 58/87: libdiskfs: fix /servers/exec lookup, Samuel Thibault, 2014/11/09
- [hurd] 59/87: hurd: make memory_object parameter polymorphic, Samuel Thibault, 2014/11/09
- [hurd] 61/87: procfs: fix typo in comment, Samuel Thibault, 2014/11/09
- [hurd] 53/87: libtrivfs: fix typo, Samuel Thibault, 2014/11/09