DragonFly commits List (threaded) for 2012-04
git: pthread_join(3): If the target thread is detached, return EINVAL.
Author: Sascha Wildner <firstname.lastname@example.org>
Date: Sat Apr 21 12:17:07 2012 +0200
pthread_join(3): If the target thread is detached, return EINVAL.
We were returning ESRCH previously, which is wrong, as it indicates
that the thread could not be found. Fix this in both libthread_xu
No thread could be found corresponding to that specified by the
given thread ID.
The value specified by thread does not refer to a joinable thread.
Summary of changes:
lib/libc_r/uthread/uthread_join.c | 13 +++++++++----
lib/libthread_xu/thread/thr_join.c | 4 +---
2 files changed, 10 insertions(+), 7 deletions(-)
DragonFly BSD source repository