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
@ -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…
x
Reference in New Issue
Block a user