mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue