diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-04-25 04:07:19 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-04-25 04:07:19 +0000 |
commit | 2617bc1caf98bfa8c065607d0ed14ee2db676940 (patch) | |
tree | 29d789c1747f5f03b4f3c3c219fd8fd510b9378a /debian/patches/libpthread_sigmask.patch | |
parent | f8f7a6ba27dd8ed69d41fcda71cb313948421300 (diff) |
Remove libpthread, now shipped by glibc, and depend on it
Diffstat (limited to 'debian/patches/libpthread_sigmask.patch')
-rw-r--r-- | debian/patches/libpthread_sigmask.patch | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/debian/patches/libpthread_sigmask.patch b/debian/patches/libpthread_sigmask.patch deleted file mode 100644 index 7315a80d..00000000 --- a/debian/patches/libpthread_sigmask.patch +++ /dev/null @@ -1,47 +0,0 @@ -* libpthread/sysdeps/mach/hurd/pt-sigstate.c (__pthread_sigstate): Wake up the message -thread if any pending signals have been unblocked (code grabbed from glibc). ---- - libpthread/sysdeps/mach/hurd/pt-sigstate.c | 9 +++++++++ - 1 files changed, 9 insertions(+), 0 deletions(-) - -Index: hurd/libpthread/sysdeps/mach/hurd/pt-sigstate.c -=================================================================== ---- hurd.orig/libpthread/sysdeps/mach/hurd/pt-sigstate.c 2011-05-29 15:23:30.000000000 +0000 -+++ hurd/libpthread/sysdeps/mach/hurd/pt-sigstate.c 2011-06-10 04:53:53.000000000 +0000 -@@ -21,6 +21,7 @@ - #include <assert.h> - #include <signal.h> - #include <hurd/signal.h> -+#include <hurd/msg.h> - - #include <pt-internal.h> - -@@ -31,11 +32,12 @@ - { - error_t err = 0; - struct hurd_sigstate *ss; -+ sigset_t pending; - - ss = _hurd_thread_sigstate (thread->kernel_thread); - assert (ss); - -- __pthread_spin_lock (&ss->lock); -+ _hurd_sigstate_lock (ss); - - if (oset) - *oset = ss->blocked; -@@ -63,7 +65,13 @@ - if (! err && clear_pending) - __sigemptyset (&ss->pending); - -- __pthread_spin_unlock (&ss->lock); -+ pending = _hurd_sigstate_pending (ss) & ~ss->blocked; -+ _hurd_sigstate_unlock (ss); -+ -+ if (! err && pending) -+ /* Send a message to the signal thread so it -+ will wake up and check for pending signals. */ -+ __msg_sig_post (_hurd_msgport, 0, 0, __mach_task_self ()); - - return err; - } |