[openssl/openssl] bea92b: sleep.c: Limit the sleep time instead of sleeping ...
Tomáš Mráz
noreply at github.com
Sat Mar 18 19:04:28 UTC 2023
Branch: refs/heads/master
Home: https://github.com/openssl/openssl
Commit: bea92b8c3d61960a2d06f8d342ef01d30a2fa195
https://github.com/openssl/openssl/commit/bea92b8c3d61960a2d06f8d342ef01d30a2fa195
Author: Tomas Mraz <tomas at openssl.org>
Date: 2023-03-18 (Sat, 18 Mar 2023)
Changed paths:
M crypto/sleep.c
M doc/man3/OSSL_sleep.pod
Log Message:
-----------
sleep.c: Limit the sleep time instead of sleeping for days or even years
As the sleep() call is interruptible, it is not even a good idea to call
it in a loop if the caller uses some ridiculously large value as an
infinity just waiting for an interrupt.
Fixes #20524
Reviewed-by: David von Oheimb <david.von.oheimb at siemens.com>
Reviewed-by: Richard Levitte <levitte at openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove at arm.com>
(Merged from https://github.com/openssl/openssl/pull/20533)
Commit: 6821acbffda908ec69769ed7f110cfde57d8ca58
https://github.com/openssl/openssl/commit/6821acbffda908ec69769ed7f110cfde57d8ca58
Author: Tomas Mraz <tomas at openssl.org>
Date: 2023-03-18 (Sat, 18 Mar 2023)
Changed paths:
M test/build.info
M test/sanitytest.c
Log Message:
-----------
Add sanity test for OSSL_sleep()
Reviewed-by: David von Oheimb <david.von.oheimb at siemens.com>
Reviewed-by: Richard Levitte <levitte at openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove at arm.com>
(Merged from https://github.com/openssl/openssl/pull/20533)
Compare: https://github.com/openssl/openssl/compare/46ce0854db51...6821acbffda9
More information about the openssl-commits
mailing list