9a263f8d794a0ecba8ee3747aa8918421f3d1abd
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / uclibc / 0.9.33.2 / 0017-librt-re-add-SIGCANCEL-to-the-list-of-blocked-signal.patch
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
5  helper thread
6
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.
12
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)
16
17 Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
18 ---
19  libpthread/nptl/sysdeps/unix/sysv/linux/timer_routines.c |    2 +-
20  1 file changed, 1 insertion(+), 1 deletion(-)
21
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)
27    sigset_t ss;
28    sigset_t oss;
29    sigfillset (&ss);
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);
34  
35 -- 
36 1.7.10.4
37