From c41a74e8f350b6e67c766ddd77198698673b3d40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 1 Apr 2008 12:17:02 +0000 Subject: [PATCH] pthread_detach() no longer fails, as we currently have all threads detached. We would need to have a hash that contains the thread data to be able to comply with the specs AFAICT. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24718 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/libroot/posix/pthread/pthread.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/system/libroot/posix/pthread/pthread.c b/src/system/libroot/posix/pthread/pthread.c index 498a3bed49..2a711b5f12 100644 --- a/src/system/libroot/posix/pthread/pthread.c +++ b/src/system/libroot/posix/pthread/pthread.c @@ -153,6 +153,7 @@ pthread_kill(pthread_t thread, int sig) int pthread_detach(pthread_t thread) { - return B_NOT_ALLOWED; + // TODO: currently, all threads are detached in our implementation... + return 0; }