From: Sami Kerola Date: Sun, 8 Feb 2015 20:44:41 +0000 (+0000) Subject: sulogin, hwclock: use xusleep() instead of usleep() X-Git-Tag: v2.26~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=559a5b6cf2efe7dee8172249312c0a7747842491;p=thirdparty%2Futil-linux.git sulogin, hwclock: use xusleep() instead of usleep() As said in include/c.h the usleep() is marked as obsolete, so do the same that most of the other util-linux calls do with this interface. Signed-off-by: Sami Kerola --- diff --git a/login-utils/sulogin.c b/login-utils/sulogin.c index f4d68c4888..51bc58239b 100644 --- a/login-utils/sulogin.c +++ b/login-utils/sulogin.c @@ -1066,7 +1066,7 @@ int main(int argc, char **argv) if (*usemask & (1<id)) continue; kill(con->pid, SIGHUP); - usleep(50000); + xusleep(50000); kill(con->pid, SIGKILL); } } diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c index 9000c95b9c..52a7874c79 100644 --- a/sys-utils/hwclock.c +++ b/sys-utils/hwclock.c @@ -609,7 +609,7 @@ set_hardware_clock_exact(const time_t sethwtime, if (debug >= 10) { int usec = random() % 1000000; printf(_("sleeping ~%d usec\n"), usec); - usleep(usec); + xusleep(usec); } gettimeofday(&nowsystime, NULL);