mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 14:49:36 -04:00
Initialize thread select queue in the same way as rev 1.93 of sys_generic.c
does. Missed and found by: alfred
This commit is contained in:
parent
098de0c172
commit
30fc2d74fa
1 changed files with 3 additions and 0 deletions
|
|
@ -122,6 +122,9 @@ retry:
|
|||
td->td_flags |= TDF_SELECT;
|
||||
mtx_unlock_spin(&sched_lock);
|
||||
mtx_unlock(&sellock);
|
||||
|
||||
/* XXX: Should be done when the thread is initialized. */
|
||||
TAILQ_INIT(&td->td_selq);
|
||||
error = nb_poll(nbp, events, td);
|
||||
mtx_lock(&sellock);
|
||||
if (error) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue