<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div style="margin: 0px;">Hi <span style="font-family: arial; white-space: pre-wrap;">Sebastian,</span></div><div style="margin: 0px;">The bug report is added, a patch which using relative timeout is attached.</div><div style="margin: 0px;">It has no time drift during 1 week testing.</div><div style="margin: 0px;"><a href="https://devel.rtems.org/ticket/4179">https://devel.rtems.org/ticket/4179</a></div><p style="margin: 0;"><br></p><pre>在 2020-11-11 14:42:36,"Sebastian Huber" <sebastian.huber@embedded-brains.de> 写道:
>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:
>
>https://docs.rtems.org/branches/master/user/support/bugs.html
>
>It would be nice if you could create a patch which fixes the bug.
>
>-- 
>embedded brains GmbH
>Sebastian HUBER
>Dornierstr. 4
>82178 Puchheim
>Germany
>email: sebastian.huber@embedded-brains.de
>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: https://embedded-brains.de/datenschutzerklaerung/
</pre></div><br><br><span title="neteasefooter"><p> </p></span>