diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-02-21 10:00:33 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-02-21 10:00:33 +0000 |
commit | 8c2e9a29b1fbda33e57b2d33c7bfcb0de666b1fb (patch) | |
tree | aa445512e4f44e9d00ee5624417f7ee5417c4b75 /nptl/pthread_timedjoin.c | |
parent | 8b1a8bb409508906737ec41ed79bb88398cb5dba (diff) | |
download | glibc-8c2e9a29b1fbda33e57b2d33c7bfcb0de666b1fb.zip glibc-8c2e9a29b1fbda33e57b2d33c7bfcb0de666b1fb.tar.gz glibc-8c2e9a29b1fbda33e57b2d33c7bfcb0de666b1fb.tar.bz2 |
Update.
* pthreadP.h: Define INVALID_TD_P and INVALID_NOT_TERMINATED_TD_P.
* pthread_cancel.c: Use INVALID_TD_P.
* pthread_detach.c: Likewise.
* pthread_getschedparam.c: Likewise.
* pthread_setschedparam.c: Likewise.
* sysdeps/pthread/pthread_getcpuclockid.c: Likewise.
* sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
* pthread_join.c: Use INVALID_NOT_TERMINATED_TD_P.
* pthread_timedjoin.c: Likewise.
* tst-basic7.c: Include <signal.h>.
Diffstat (limited to 'nptl/pthread_timedjoin.c')
-rw-r--r-- | nptl/pthread_timedjoin.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nptl/pthread_timedjoin.c b/nptl/pthread_timedjoin.c index 0883f94..c83c0ef 100644 --- a/nptl/pthread_timedjoin.c +++ b/nptl/pthread_timedjoin.c @@ -19,7 +19,6 @@ #include <errno.h> #include <stdlib.h> - #include "atomic.h" #include "pthreadP.h" @@ -42,7 +41,7 @@ pthread_timedjoin_np (threadid, thread_return, abstime) int result; /* Make sure the descriptor is valid. */ - if ((DEBUGGING_P && __find_in_stack_list (pd) == NULL) || pd->tid <= 0) + if (INVALID_NOT_TERMINATED_TD_P (pd)) /* Not a valid thread handle. */ return ESRCH; |