summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_create.c
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2003-05-04 16:17:01 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2003-05-04 16:17:01 +0000
commit40791d9d15e29400c0df0702333382bfcbe48866 (patch)
tree3d8c66d5e73ff5869e8a7e1754ef39d0b512e848 /lib/libpthread/thread/thr_create.c
parent452855111a8cd6f1584d9743a67b11e275943bce (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_create.c')
-rw-r--r--lib/libpthread/thread/thr_create.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_create.c b/lib/libpthread/thread/thr_create.c
index 0c9edbdccb42..4cc1b6c6d11f 100644
--- a/lib/libpthread/thread/thr_create.c
+++ b/lib/libpthread/thread/thr_create.c
@@ -259,8 +259,10 @@ _pthread_create(pthread_t * thread, const pthread_attr_t * attr,
new_thread->flags = 0;
new_thread->continuation = NULL;
- if (new_thread->attr.suspend == THR_CREATE_SUSPENDED)
+ if (new_thread->attr.suspend == THR_CREATE_SUSPENDED) {
new_thread->state = PS_SUSPENDED;
+ new_thread->flags = THR_FLAGS_SUSPENDED;
+ }
else
new_thread->state = PS_RUNNING;