libbsd select timeout issue(critial!!)

Sebastian Huber sebastian.huber at
Wed Nov 11 06:42:36 UTC 2020

On 11/11/2020 03:50, RUI Zhengxin wrote:

> This issue is very critial, it can make the select abnormally return 
> timeout after long run time.
> If the timeout is set to 5ms,  when the system run after 70000s(19.4h),
> the select function will wait 10ms timeout, which is two times of 
> setting value.
> This issue is created by calculating timeout watchdog expire tick 
> using the absolute time since libbsd5 version.

Yes, the calculation of the absolute timeout is broken. Could you please 
add a bug report:

It would be nice if you could create a patch which fixes the bug.

embedded brains GmbH
Sebastian HUBER
Dornierstr. 4
82178 Puchheim
email: sebastian.huber at
Phone: +49-89-18 94 741 - 16
Fax:   +49-89-18 94 741 - 08
PGP: Public key available on request.

embedded brains GmbH
Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:

More information about the users mailing list