mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
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>.
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user