[glibc] 01/01: hurd-i386/tg-poll_errors_fixes.diff: Fix spurious port destroy
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch sid
in repository glibc.
commit 4b4017d439c7a20b5e6756edb98af678f4e49c95
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Sun Sep 11 23:30:42 2016 +0200
hurd-i386/tg-poll_errors_fixes.diff: Fix spurious port destroy
on io_select returning an error.
---
debian/changelog | 4 ++++
debian/patches/hurd-i386/tg-poll_errors_fixes.diff | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 440de95..14520c5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,10 @@ glibc (2.24-4) UNRELEASED; urgency=medium
* patches/kfreebsd/local-sysdeps.diff: update to revision 6102 (from
glibc-bsd).
+ [ Samuel Thibault ]
+ * hurd-i386/tg-poll_errors_fixes.diff: Fix spurious port destroy on io_select
+ returning an error.
+
-- Aurelien Jarno <aurel32@debian.org> Mon, 05 Sep 2016 23:34:08 +0200
glibc (2.24-2) unstable; urgency=medium
diff --git a/debian/patches/hurd-i386/tg-poll_errors_fixes.diff b/debian/patches/hurd-i386/tg-poll_errors_fixes.diff
index 6737be4..6ab8648 100644
--- a/debian/patches/hurd-i386/tg-poll_errors_fixes.diff
+++ b/debian/patches/hurd-i386/tg-poll_errors_fixes.diff
@@ -227,7 +227,7 @@ index d453042..070ac1a 100644
if (firstfd != -1)
for (i = firstfd; i <= lastfd; ++i)
- if (d[i].type)
-+ if (d[i].type & ~SELECT_ERROR)
++ if (d[i].type & ~(SELECT_ERROR | SELECT_RETURNED))
__mach_port_destroy (__mach_task_self (), d[i].reply_port);
if (firstfd == -1 || (firstfd != lastfd && portset != MACH_PORT_NULL))
/* Destroy PORTSET, but only if it's not actually the reply port for a
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-glibc/glibc.git
Reply to: