Re: kqueue_scan() should not return EWOULDBLOCK

2020-12-23 Thread Martin Pieuchot
On 23/12/20(Wed) 07:18, Visa Hankala wrote: > This fixes a recent regression in kqueue_scan() where the function can > mistakenly return EWOULDBLOCK. > > Currently, kqueue_scan() does one more scan attempt after a timeout. > Usually, this gives no new events and the function bails out through >

kqueue_scan() should not return EWOULDBLOCK

2020-12-22 Thread Visa Hankala
This fixes a recent regression in kqueue_scan() where the function can mistakenly return EWOULDBLOCK. Currently, kqueue_scan() does one more scan attempt after a timeout. Usually, this gives no new events and the function bails out through the following code. Note that it clears `error'.