mirror of
https://git.yoctoproject.org/poky
synced 2026-02-07 17:26:36 +01:00
When using xinet.d to limit rsync connections, it can't handle changes in system time. When time is set back, the connection limit is reached very quickly and rsync gets deactivated, if time is changed again, rsync is never reactivated. The current timer of xinet.d is based on the time() and is affected by the system time. Use clock_gettime() with CLOCK_MONOTONIC as the new timer because CLOCK_MONOTONIC clock is not affected by discontinuous jumps in the system time. (From OE-Core rev: e4bfd2cc66c4b5614513ec50806492efc8df75be) Signed-off-by: Li Wang <li.wang@windriver.com> Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>