If the initial thread calls pthread_exit(), don't overwrite its thread
authorguenther <guenther@openbsd.org>
Thu, 14 Aug 2008 05:15:41 +0000 (05:15 +0000)
committerguenther <guenther@openbsd.org>
Thu, 14 Aug 2008 05:15:41 +0000 (05:15 +0000)
commit9f2c70f0732a3a963c9ef89a14a3a448e88ea700
treed1a3e8e549c64d0555bed810db7f9e371820fd01
parent41e7db73707932a7c6f44da76a8da4dd8aa99dda
If the initial thread calls pthread_exit(), don't overwrite its thread
structure, as the 'tid' member there is used by other parts of
librthread to determine whether the current thread is the initial thread
lib/librthread/rthread.c