Subject: CVS commit: [nathanw_sa] basesrc/lib/libpthread
To: None <source-changes@netbsd.org>
From: Nathan J Williams <nathanw@netbsd.org>
List: source-changes
Date: 10/28/2002 18:23:48
Module Name: basesrc
Committed By: nathanw
Date: Mon Oct 28 16:23:48 UTC 2002
Modified Files:
basesrc/lib/libpthread [nathanw_sa]: pthread.c pthread_int.h
Log Message:
As pointed out recently on comp.programming.threads, POSIX requires
that pthread_detach() and pthread_join() must return ESRCH, not invoke
undefined behavior, even if handed completely nonsensical pthread_t values.
So, search through the list of threads to see if the pthread_t value is
valid.
To generate a diff of this commit:
cvs rdiff -r1.1.2.30 -r1.1.2.31 basesrc/lib/libpthread/pthread.c
cvs rdiff -r1.1.2.33 -r1.1.2.34 basesrc/lib/libpthread/pthread_int.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.