From: Yu Watanabe Date: Mon, 15 Dec 2025 09:07:17 +0000 (+0900) Subject: time-util: make usleep_safe() support USEC_INFINITY X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78385b8e9466d688b1e57e06cb7ec91277d1b94d;p=thirdparty%2Fsystemd.git time-util: make usleep_safe() support USEC_INFINITY --- diff --git a/src/basic/time-util.c b/src/basic/time-util.c index 99915052829..5dd00af952d 100644 --- a/src/basic/time-util.c +++ b/src/basic/time-util.c @@ -1804,6 +1804,9 @@ int usleep_safe(usec_t usec) { if (usec == 0) return 0; + if (usec == USEC_INFINITY) + return RET_NERRNO(pause()); + struct timespec t; timespec_store(&t, usec);