aboutsummaryrefslogtreecommitdiff
path: root/nptl/pthread_detach.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_detach.c')
-rw-r--r--nptl/pthread_detach.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/pthread_detach.c b/nptl/pthread_detach.c
index ce13a2cfde..1f0c2fe7ce 100644
--- a/nptl/pthread_detach.c
+++ b/nptl/pthread_detach.c
@@ -29,7 +29,7 @@ pthread_detach (th)
struct pthread *pd = (struct pthread *) th;
/* Make sure the descriptor is valid. */
- if (INVALID_TD_P (pd))
+ if (INVALID_NOT_TERMINATED_TD_P (pd))
/* Not a valid thread handle. */
return ESRCH;