Re: [OpenBSD -current] Change event timer in main loop with kqueue

2021-03-30 Thread Martin Pieuchot
On 21/03/21(Sun) 11:27, Visa Hankala wrote: > On Sat, Feb 27, 2021 at 01:36:29PM +, Visa Hankala wrote: > > The kernel does not reschedule the timer when the user changes the > > timeout period. The new period will take effect only after the current > > period has expired. This is not explained

Re: [OpenBSD -current] Change event timer in main loop with kqueue

2021-03-21 Thread Visa Hankala
On Sat, Feb 27, 2021 at 01:36:29PM +, Visa Hankala wrote: > The kernel does not reschedule the timer when the user changes the > timeout period. The new period will take effect only after the current > period has expired. This is not explained in the manual page, though. > > With the recent kq

Re: [OpenBSD -current] Change event timer in main loop with kqueue

2021-03-01 Thread Visa Hankala
On Sun, Feb 28, 2021 at 03:36:59PM +0100, martin mag wrote: > Visa Hankala wrote (patch truncated): > > The kernel does not reschedule the timer when the user changes the > > timeout period. The new period will take effect only after the current > > period has expired. This is not explained in the

Re: [OpenBSD -current] Change event timer in main loop with kqueue

2021-02-28 Thread martin mag
Visa Hankala wrote (patch truncated): > The kernel does not reschedule the timer when the user changes the > timeout period. The new period will take effect only after the current > period has expired. This is not explained in the manual page, though. > > With the recent kqueue changes, it is stra

Re: [OpenBSD -current] Change event timer in main loop with kqueue

2021-02-27 Thread Visa Hankala
Moving to tech@. On Fri, Feb 26, 2021 at 09:42:07PM +0100, martin mag wrote: > I've been trying to use kqueue for the last couple of day but I keep > having an issue with EVFILT_TIMER filter. (I'm running Openbsd > -current) > > Right now, I'm trying to do the following: > 1) Initilialize a timer