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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95313
@ -122,6 +122,9 @@ nbssn_rselect(struct nbpcb *nbp, struct timeval *tv, int events,
|
||||
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 New Issue
Block a user