mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-12 14:29:28 +00:00
The pthread_attr_set_createsuspend_np was broken, fix it by
replacing THR_FLAGS_SUSPENDED with THR_FLAGS_NEED_SUSPEND.
This commit is contained in:
parent
b3f2825399
commit
88676cbc2c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=151199
@ -140,7 +140,7 @@ _pthread_create(pthread_t * thread, const pthread_attr_t * attr,
|
||||
|
||||
/* Initialise hooks in the thread structure: */
|
||||
if (new_thread->attr.suspend == THR_CREATE_SUSPENDED)
|
||||
new_thread->flags = THR_FLAGS_SUSPENDED;
|
||||
new_thread->flags = THR_FLAGS_NEED_SUSPEND;
|
||||
new_thread->state = PS_RUNNING;
|
||||
|
||||
/* Add the new thread. */
|
||||
|
Loading…
Reference in New Issue
Block a user