CVSROOT: /cvs Module name: src Changes by: [email protected] 2019/10/03 12:47:19
Modified files:
sys/kern : sys_generic.c
Log message:
poll(2), ppoll(2), select(2), pselect(2): always set P_SELECT before tsleep
When I introduced the tsleep loops in r1.23 I screwed it up and introduced
a bug: on EWOULDBLOCK we loop but fail to reset P_SELECT, so the thread
will continue to sleep but miss all relevant descriptor activity after
INT_MAX ticks have elapsed.
Spotted by mpi@ back in July.
ok mpi@
