summaryrefslogtreecommitdiff
path: root/sync.c
diff options
context:
space:
mode:
authorrpj <rpj>1998-07-24 07:52:30 +0000
committerrpj <rpj>1998-07-24 07:52:30 +0000
commit82fa43b768e09bf30669351b61eb2f94cb1c71a3 (patch)
tree99580bdb1b8a40ef7580537aea2b874e01b96849 /sync.c
parentd0870a69bfaea4e1c57b2fced2477b0546bb7006 (diff)
Fri Jul 24 16:33:17 1998 Ross Johnson <rpj@swan.canberra.edu.au>
* sync.c (pthread_detach): Use equality test, not assignment. * create.c (_pthread_start_call): Add call to Win32 CloseHandle() if thread is detached.
Diffstat (limited to 'sync.c')
-rw-r--r--sync.c2
1 files changed, 1 insertions, 1 deletions
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;
}