summaryrefslogtreecommitdiff
path: root/lib/libc_r/uthread/uthread_create.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc_r/uthread/uthread_create.c')
-rw-r--r--lib/libc_r/uthread/uthread_create.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc_r/uthread/uthread_create.c b/lib/libc_r/uthread/uthread_create.c
index 4ce34434f3e..178c35424b8 100644
--- a/lib/libc_r/uthread/uthread_create.c
+++ b/lib/libc_r/uthread/uthread_create.c
@@ -29,6 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
+ * $OpenBSD: uthread_create.c,v 1.5 1999/01/06 05:29:22 d Exp $
*/
#include <errno.h>
#include <stdlib.h>
@@ -90,6 +91,7 @@ pthread_create(pthread_t * thread, const pthread_attr_t * attr,
new_thread->arg = arg;
timerclear(&new_thread->ru_utime);
timerclear(&new_thread->ru_stime);
+ _SPINUNLOCK(&new_thread->lock);
/*
* Write a magic value to the thread structure