From 45bf44ba9acba066769bedf5657e13d7d66e152e Mon Sep 17 00:00:00 2001 From: rpj Date: Tue, 23 Nov 2004 01:06:18 +0000 Subject: '' --- pthread_cancel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pthread_cancel.c') 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; -- cgit v1.2.3