Closed xaizek closed 1 year ago
nanosleep() fails if .tv_nsec is larger than 999999999, so duration must be distributed between .tv_sec and .tv_nsec. Duration also needs to be stored in unsigned long long to be able to store values of more than ~4 seconds.
nanosleep()
.tv_nsec
.tv_sec
unsigned long long
Fixed by commit 250990a7df3159a84b488bb2a6ba6b5f888f2618. Added a tag to commit message.
@xaizek, thanks!
nanosleep()
fails if.tv_nsec
is larger than 999999999, so duration must be distributed between.tv_sec
and.tv_nsec
. Duration also needs to be stored inunsigned long long
to be able to store values of more than ~4 seconds.