From 82fa43b768e09bf30669351b61eb2f94cb1c71a3 Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 24 Jul 1998 07:52:30 +0000 Subject: Fri Jul 24 16:33:17 1998 Ross Johnson * sync.c (pthread_detach): Use equality test, not assignment. * create.c (_pthread_start_call): Add call to Win32 CloseHandle() if thread is detached. --- sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sync.c') diff --git a/sync.c b/sync.c index 2fc08ec..c4e4327 100644 --- a/sync.c +++ b/sync.c @@ -73,7 +73,7 @@ pthread_detach(pthread_t thread) this = _pthread_find_thread_entry(thread); - if (this = -1) + if (this == -1) { return ESRCH; } -- cgit v1.2.3