From 030fe31760169783537162b83af89e551bf120f6 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 11 Dec 2020 16:48:47 +0100 Subject: libbb: make msleep() result in only one syscall instead of looping function old new delta msleep 45 52 +7 Signed-off-by: Denys Vlasenko --- libbb/platform.c | 1 - 1 file changed, 1 deletion(-) (limited to 'libbb/platform.c') diff --git a/libbb/platform.c b/libbb/platform.c index d2b263a6d..329b0237e 100644 --- a/libbb/platform.c +++ b/libbb/platform.c @@ -27,7 +27,6 @@ int FAST_FUNC usleep(unsigned usec) * If a signal has non-default handler, nanosleep returns early. * Our version of usleep doesn't return early * if interrupted by such signals: - * */ while (nanosleep(&ts, &ts) != 0) continue; -- cgit v1.2.3