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