1 From fec308fdfaf9f557ef5fb17c308c48259012b825 Mon Sep 17 00:00:00 2001
2 From: Filippo Arcidiacono <filippo.arcidiacono@st.com>
3 Date: Thu, 12 Jul 2012 09:24:39 +0200
4 Subject: [PATCH] librt: re-add SIGCANCEL to the list of blocked signal in
7 Indeed if the libpthread is before the libc in the library look up
8 the SIGCANCEL is removed from the list of the blocked signal by
9 sigfillset func, this can produce the handler not properly called.
10 This commit revert what Denys modified in commit
11 162cfaea20d807f0ae329efe39292a9b22593b41.
13 Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
14 Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
15 (cherry picked from commit cb43f2afba0633400387fa7c55dda3396517f58a)
17 Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
19 libpthread/nptl/sysdeps/unix/sysv/linux/timer_routines.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
22 diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/timer_routines.c b/libpthread/nptl/sysdeps/unix/sysv/linux/timer_routines.c
23 index 4319d8d..2681961 100644
24 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/timer_routines.c
25 +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/timer_routines.c
26 @@ -175,7 +175,7 @@ __start_helper_thread (void)
30 - /*__sigaddset (&ss, SIGCANCEL); - already done by sigfillset */
31 + __sigaddset (&ss, SIGCANCEL);
32 INTERNAL_SYSCALL_DECL (err);
33 INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_SETMASK, &ss, &oss, _NSIG / 8);