NonStop: Do not call sleep() with a 0 value
authorRandall S. Becker <randall.becker@nexbridge.ca>
Sat, 30 Mar 2024 22:28:02 +0000 (22:28 +0000)
committerTomas Mraz <tomas@openssl.org>
Fri, 5 Apr 2024 14:06:51 +0000 (16:06 +0200)
commitc89fe574493f438dd0e94bb9a89227e4ca84c0b7
treef8d1f6801551d9bffc2203757eb0de2443ec39b6
parent1a4b029af51ba6128a37959796381ca5b8b7ac00
NonStop: Do not call sleep() with a 0 value

This change ensures that sleep(0) is not invoked to cause unexpected
duplicate thread context switches when _REENTRANT is specified.

Fixes: #24009
Signed-off-by: Randall S. Becker <randall.becker@nexbridge.ca>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24012)
crypto/sleep.c