Subject: CVS commit: src/lib/libpthread
To: None <source-changes@NetBSD.org>
From: YAMAMOTO Takashi <yamt@netbsd.org>
List: source-changes
Date: 02/12/2006 11:41:53
Module Name:	src
Committed By:	yamt
Date:		Sun Feb 12 11:41:53 UTC 2006

Modified Files:
	src/lib/libpthread: pthread.c pthread_stack.c

Log Message:
- do PTHREAD_MLOCK_KLUDGE in pthread__stackid_setup, rather than callers,
  so that the main thread is not different from others.
  as a side effect, fix memory leak in pthread_create on error.
- make pthread__stackid_setup return a error rather than calling err(2).


To generate a diff of this commit:
cvs rdiff -r1.46 -r1.47 src/lib/libpthread/pthread.c
cvs rdiff -r1.16 -r1.17 src/lib/libpthread/pthread_stack.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.