diff options
author | Li Wang <li.wang@windriver.com> | 2025-04-04 13:21:06 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-04-08 15:49:17 +0100 |
commit | 381f21f86126905a51d13d129241159c3778b181 (patch) | |
tree | ed207ae2107d9a9e6a45ec5259181e0e2d0d505f /scripts/lib/argparse_oe.py | |
parent | e2c0b0ceeb4574f7c1b21369110d660bfe7eaa24 (diff) | |
download | poky-381f21f86126905a51d13d129241159c3778b181.tar.gz |
xinetd: use monotonic time
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>
Diffstat (limited to 'scripts/lib/argparse_oe.py')
0 files changed, 0 insertions, 0 deletions