summaryrefslogtreecommitdiff
path: root/pthread_cancel.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthread_cancel.c')
-rw-r--r--pthread_cancel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread_cancel.c b/pthread_cancel.c
index e4afca3..7b6dbcb 100644
--- a/pthread_cancel.c
+++ b/pthread_cancel.c
@@ -123,8 +123,8 @@ pthread_cancel (pthread_t thread)
pthread_t self;
ptw32_thread_t * tp;
- /* This is the proper way to test thread validity. */
result = pthread_kill (thread, 0);
+
if (0 != result)
{
return result;