about summary refs log tree commit diff
path: root/nptl/sysdeps/pthread/sigaction.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/sysdeps/pthread/sigaction.c')
-rw-r--r--nptl/sysdeps/pthread/sigaction.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/nptl/sysdeps/pthread/sigaction.c b/nptl/sysdeps/pthread/sigaction.c
index e3554ddb44..d69abf09ae 100644
--- a/nptl/sysdeps/pthread/sigaction.c
+++ b/nptl/sysdeps/pthread/sigaction.c
@@ -22,9 +22,10 @@
    exact file anyway.  */
 #ifndef LIBC_SIGACTION
 
+#include <nptl/pthreadP.h>
+
 /* We use the libc implementation but we tell it to not allow
-   SIGCANCEL to be handled.  */
-# define SIGCANCEL __SIGRTMIN
+   SIGCANCEL or SIGTIMER to be handled.  */
 # define LIBC_SIGACTION	1
 
 # include <nptl/sysdeps/pthread/sigaction.c>
@@ -35,7 +36,7 @@ __sigaction (sig, act, oact)
      const struct sigaction *act;
      struct sigaction *oact;
 {
-  if (sig == SIGCANCEL)
+  if (sig == SIGCANCEL || sig == SIGTIMER)
     {
       __set_errno (EINVAL);
       return -1;