summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Foxley <austinf@cetoncorp.com>2010-01-23 09:47:03 -0800
committerAustin Foxley <austinf@cetoncorp.com>2010-01-23 09:47:03 -0800
commite64b864d6d4e020a94d3931704ccea50d1a20b82 (patch)
tree3f9e821fd6fcfb54adacca77f0426b398fbcc964
parent47fd3a30139335207002481f747747e4e2a5bbb0 (diff)
nptl: timer_routines.c (timer_helper_thread):
Use sigfillset. Document that sigfillset does the right thing wrt to SIGSETXID. Sync with glibc Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
-rw-r--r--libpthread/nptl/ChangeLog5
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/timer_routines.c9
2 files changed, 6 insertions, 8 deletions
diff --git a/libpthread/nptl/ChangeLog b/libpthread/nptl/ChangeLog
index 7d103e655..92bd22af7 100644
--- a/libpthread/nptl/ChangeLog
+++ b/libpthread/nptl/ChangeLog
@@ -1,6 +1,8 @@
2005-08-23 Ulrich Drepper <drepper@redhat.com>
- * sysdeps/unix/sysv/linux/timer_routines.c: Don't block SIGSETXID ever.
+ * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
+ Use __sigfillset. Document that sigfillset does the right thing wrt
+ to SIGSETXID.
2005-07-11 Jakub Jelinek <jakub@redhat.com>
@@ -223,6 +225,7 @@
2005-02-14 Alan Modra <amodra@bigpond.net.au>
+ [BZ #721]
* sysdeps/powerpc/tcb-offsets.sym (thread_offsetof): Redefine to suit
gcc4.
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/timer_routines.c b/libpthread/nptl/sysdeps/unix/sysv/linux/timer_routines.c
index 0ddfe8a51..924c524ba 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/timer_routines.c
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/timer_routines.c
@@ -58,9 +58,6 @@ timer_helper_thread (void *arg)
sigset_t ss;
sigemptyset (&ss);
__sigaddset (&ss, SIGTIMER);
-#ifdef SIGSETXID
- __sigaddset (&ss, SIGSETXID);
-#endif
/* Endless loop of waiting for signals. The loop is only ended when
the thread is canceled. */
@@ -128,14 +125,12 @@ __start_helper_thread (void)
/* Block all signals in the helper thread but SIGSETXID. To do this
thoroughly we temporarily have to block all signals here. The
helper can lose wakeups if SIGCANCEL is not blocked throughout,
- but sigfillset omits it. So, we add it back explicitly here. */
+ but sigfillset omits it SIGSETXID. So, we add it back
+ explicitly here. */
sigset_t ss;
sigset_t oss;
sigfillset (&ss);
__sigaddset (&ss, SIGCANCEL);
-#ifdef SIGSETXID
- __sigdelset (&ss, SIGSETXID);
-#endif
INTERNAL_SYSCALL_DECL (err);
INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_SETMASK, &ss, &oss, _NSIG / 8);