]> Git Repo - uclibc-ng.git/commitdiff
librt: re-add SIGCANCEL to the list of blocked signal in helper thread
authorFilippo Arcidiacono <[email protected]>
Thu, 12 Jul 2012 07:24:39 +0000 (09:24 +0200)
committerCarmelo Amoroso <[email protected]>
Wed, 29 Aug 2012 11:11:14 +0000 (13:11 +0200)
Indeed if the libpthread is before the libc in the library look up
the SIGCANCEL is removed from the list of the blocked signal by
sigfillset func, this can produce the handler not properly called.
This commit revert what Denys modified in commit
162cfaea20d807f0ae329efe39292a9b22593b41.

Signed-off-by: Filippo Arcidiacono <[email protected]>
Signed-off-by: Carmelo Amoroso <[email protected]>
libpthread/nptl/sysdeps/unix/sysv/linux/timer_routines.c

index 2f33e9981ae719484b7e38af97d2e487853880e5..2d16837d0fb5d89d882ab4b4f405e47a0a28f76f 100644 (file)
@@ -175,7 +175,7 @@ __start_helper_thread (void)
   sigset_t ss;
   sigset_t oss;
   sigfillset (&ss);
-  /*__sigaddset (&ss, SIGCANCEL); - already done by sigfillset */
+  __sigaddset (&ss, SIGCANCEL);
   INTERNAL_SYSCALL_DECL (err);
   INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_SETMASK, &ss, &oss, _NSIG / 8);
 
This page took 0.030874 seconds and 4 git commands to generate.