summaryrefslogtreecommitdiff
path: root/sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'sync.c')
-rw-r--r--sync.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sync.c b/sync.c
index e8262a6..2fc08ec 100644
--- a/sync.c
+++ b/sync.c
@@ -84,7 +84,11 @@ pthread_detach(pthread_t thread)
{
return EINVAL;
}
-
- /* FIXME: As far as I can determine we just no-op. */
+
+ this->attr.detached = PTHREAD_CREATE_DETACHED;
+ if (CloseHandle(thread) != TRUE)
+ {
+ return ESRCH;
+ }
return 0;
}