Re: Retry sleep in poll/select

2021-11-19 Thread Scott Cheloha
> On Nov 18, 2021, at 23:59, Sebastien Marie wrote: > > On Thu, Nov 18, 2021 at 07:50:01PM -0600, Scott Cheloha wrote: >>> On Thu, Nov 18, 2021 at 12:30:30PM +0100, Martin Pieuchot wrote: >>> On 17/11/21(Wed) 09:51, Scott Cheloha wrote: > On Nov 17, 2021, at 03:22, Martin Pieuchot wrote:

Re: Retry sleep in poll/select

2021-11-18 Thread Sebastien Marie
On Thu, Nov 18, 2021 at 07:50:01PM -0600, Scott Cheloha wrote: > On Thu, Nov 18, 2021 at 12:30:30PM +0100, Martin Pieuchot wrote: > > On 17/11/21(Wed) 09:51, Scott Cheloha wrote: > > > > On Nov 17, 2021, at 03:22, Martin Pieuchot wrote: > > > > > > > > ???On 16/11/21(Tue) 13:55, Visa Hankala

Re: Retry sleep in poll/select

2021-11-18 Thread Scott Cheloha
On Thu, Nov 18, 2021 at 12:30:30PM +0100, Martin Pieuchot wrote: > On 17/11/21(Wed) 09:51, Scott Cheloha wrote: > > > On Nov 17, 2021, at 03:22, Martin Pieuchot wrote: > > > > > > ???On 16/11/21(Tue) 13:55, Visa Hankala wrote: > > >> Currently, dopselect() and doppoll() call tsleep_nsec()

Re: Retry sleep in poll/select

2021-11-18 Thread Martin Pieuchot
On 17/11/21(Wed) 09:51, Scott Cheloha wrote: > > On Nov 17, 2021, at 03:22, Martin Pieuchot wrote: > > > > On 16/11/21(Tue) 13:55, Visa Hankala wrote: > >> Currently, dopselect() and doppoll() call tsleep_nsec() without retry. > >> cheloha@ asked if the functions should handle spurious wakeups.

Re: Retry sleep in poll/select

2021-11-17 Thread Scott Cheloha
> On Nov 17, 2021, at 03:22, Martin Pieuchot wrote: > > On 16/11/21(Tue) 13:55, Visa Hankala wrote: >> Currently, dopselect() and doppoll() call tsleep_nsec() without retry. >> cheloha@ asked if the functions should handle spurious wakeups. I guess >> such wakeups are unlikely with the nowake

Re: Retry sleep in poll/select

2021-11-17 Thread Martin Pieuchot
On 16/11/21(Tue) 13:55, Visa Hankala wrote: > Currently, dopselect() and doppoll() call tsleep_nsec() without retry. > cheloha@ asked if the functions should handle spurious wakeups. I guess > such wakeups are unlikely with the nowake wait channel, but I am not > sure if that is a safe guess. I'm

Retry sleep in poll/select

2021-11-16 Thread Visa Hankala
Currently, dopselect() and doppoll() call tsleep_nsec() without retry. cheloha@ asked if the functions should handle spurious wakeups. I guess such wakeups are unlikely with the nowake wait channel, but I am not sure if that is a safe guess. The following diff adds the retrying. The code is a bit