summaryrefslogtreecommitdiff
path: root/pthread_detach.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthread_detach.c')
-rw-r--r--pthread_detach.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread_detach.c b/pthread_detach.c
index 147c506..93903a7 100644
--- a/pthread_detach.c
+++ b/pthread_detach.c
@@ -77,8 +77,8 @@ pthread_detach (pthread_t thread)
int result;
ptw32_thread_t * tp = (ptw32_thread_t *) thread.p;
- /* This is the proper way to test for a valid thread. */
result = pthread_kill (thread, 0);
+
if (0 != result)
{
return result;