summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorSamuel Thibault <sthibault@debian.org>2009-10-17 22:51:37 +0000
committerSamuel Thibault <sthibault@debian.org>2009-10-17 22:51:37 +0000
commit5dc153b6b444cad7b3ac86fb05dc864c6112e7be (patch)
treec139838cc7c45cfca0085a48735130a2edbdb47c /debian
parenta3aeb64d5d35335ef7b807f8e47a0061035ae45b (diff)
debian/patches/libpthread_kill_0.patch: New patch to fix pthread_kill(th, 0);
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog2
-rw-r--r--debian/patches/libpthread_kill_0.patch23
-rw-r--r--debian/patches/series1
3 files changed, 26 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 63184022..0cb609d7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ hurd (20090404-3) unreleased; urgency=low
* debian/rules: Really put debugging symbols into the hurd-dbg package.
* debian/patches/libpthread_cancel_init.patch: New patch to fix portability
of pthread.h
+ * debian/patches/libpthread_kill_0.patch: New patch to fix pthread_kill(th,
+ 0);
-- Samuel Thibault <sthibault@debian.org> Tue, 13 Oct 2009 01:20:44 +0200
diff --git a/debian/patches/libpthread_kill_0.patch b/debian/patches/libpthread_kill_0.patch
new file mode 100644
index 00000000..c0523bb6
--- /dev/null
+++ b/debian/patches/libpthread_kill_0.patch
@@ -0,0 +1,23 @@
+commit fb30b6bbf28d91667dcb9691dfeefffac4f99b82
+Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
+Date: Sun Oct 18 00:24:19 2009 +0200
+
+ Fix pthread_kill(thread, 0)
+
+ * sysdeps/hurd/pt-kill.c (pthread_kill): Return immediately after checks
+ without calling _hurd_raise_signal if sig is 0.
+
+diff --git a/sysdeps/hurd/pt-kill.c b/sysdeps/hurd/pt-kill.c
+index f970e06..d204e3f 100644
+--- a/libpthread/sysdeps/hurd/pt-kill.c
++++ b/libpthread/sysdeps/hurd/pt-kill.c
+@@ -39,6 +39,9 @@ pthread_kill (pthread_t thread, int sig)
+ ss = _hurd_thread_sigstate (pthread->kernel_thread);
+ assert (ss);
+
++ if (!sig)
++ return 0;
++
+ detail.exc = 0;
+ detail.code = sig;
+ detail.error = 0;
diff --git a/debian/patches/series b/debian/patches/series
index 6d59d6ff..09588fd7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -30,3 +30,4 @@ pfinet-gcc-4.3-fix.patch -p1
MAKEDEV.patch -p1
libdiskfs-rename.patch -p1
libpthread_cancel_init.patch -p1
+libpthread_kill_0.patch -p1