From 9dcd4bcb48b289130560fe52c1506d3f4e601c07 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 22 Jul 2008 02:54:21 +0000 Subject: * debian/patches/pflocal-port-leak.patch: New patch to fix a port leak in pflocal which was making tcl-related builds hang. --- debian/changelog | 4 +++- debian/patches/pflocal-port-leak.patch | 36 ++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 debian/patches/pflocal-port-leak.patch (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index 179bdb46..df10c613 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,8 @@ hurd (20080607-4) UNRELEASED; urgency=low - * + [Samuel Thibault] + * debian/patches/pflocal-port-leak.patch: New patch to fix a port leak in + pflocal which was making tcl-related builds hang. -- Michael Banck Sat, 12 Jul 2008 16:45:36 +0200 diff --git a/debian/patches/pflocal-port-leak.patch b/debian/patches/pflocal-port-leak.patch new file mode 100644 index 00000000..c967e8e5 --- /dev/null +++ b/debian/patches/pflocal-port-leak.patch @@ -0,0 +1,36 @@ +2008-07-22 Samuel Thibault + + * pf.c (S_socket_fabricate_address): Drop one reference from addr since + we only take the send right. + * socket.c (S_socket_name): Likewise. + +Index: pflocal/pf.c +=================================================================== +RCS file: /cvsroot/hurd/hurd/pflocal/pf.c,v +retrieving revision 1.15 +diff -u -p -r1.15 pf.c +--- pflocal/pf.c 9 Aug 2000 21:13:53 -0000 1.15 ++++ pflocal/pf.c 22 Jul 2008 00:54:47 -0000 +@@ -108,6 +108,7 @@ S_socket_fabricate_address (mach_port_t + + *addr_port = ports_get_right (addr); + *addr_port_type = MACH_MSG_TYPE_MAKE_SEND; ++ ports_port_deref (addr); + + return 0; + } +Index: pflocal/socket.c +=================================================================== +RCS file: /cvsroot/hurd/hurd/pflocal/socket.c,v +retrieving revision 1.24 +diff -u -p -r1.24 socket.c +--- pflocal/socket.c 29 Aug 2005 09:41:21 -0000 1.24 ++++ pflocal/socket.c 22 Jul 2008 00:54:47 -0000 +@@ -245,6 +245,7 @@ S_socket_name (struct sock_user *user, + + *addr_port = ports_get_right (addr); + *addr_port_type = MACH_MSG_TYPE_MAKE_SEND; ++ ports_port_deref (addr); + + return 0; + } -- cgit v1.2.3