about summary refs log tree commit diff
path: root/nptl/pthread_sigqueue.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-05-11 11:08:00 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-05-11 11:09:42 +0200
commitd2af73a348c4a230792d190c774a431fe5c31515 (patch)
tree328dad904fbffb9e48ab2707689a51db2644f307 /nptl/pthread_sigqueue.c
parent5f717849198273153a5d390985157fbf973c4e39 (diff)
downloadglibc-d2af73a348c4a230792d190c774a431fe5c31515.tar.gz
glibc-d2af73a348c4a230792d190c774a431fe5c31515.tar.xz
glibc-d2af73a348c4a230792d190c774a431fe5c31515.zip
nptl: Remove always-disabled debugging support
This removes the DEBUGGING_P macro and the __pthread_debug variable.
The __find_in_stack_list function is now unused and deleted as well.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl/pthread_sigqueue.c')
-rw-r--r--nptl/pthread_sigqueue.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/nptl/pthread_sigqueue.c b/nptl/pthread_sigqueue.c
index 64bacfe41b..3ffb595489 100644
--- a/nptl/pthread_sigqueue.c
+++ b/nptl/pthread_sigqueue.c
@@ -31,11 +31,6 @@ pthread_sigqueue (pthread_t threadid, int signo, const union sigval value)
 #ifdef __NR_rt_tgsigqueueinfo
   struct pthread *pd = (struct pthread *) threadid;
 
-  /* Make sure the descriptor is valid.  */
-  if (DEBUGGING_P && INVALID_TD_P (pd))
-    /* Not a valid thread handle.  */
-    return ESRCH;
-
   /* Force load of pd->tid into local variable or register.  Otherwise
      if a thread exits between ESRCH test and tgkill, we might return
      EINVAL, because pd->tid would be cleared by the kernel.  */