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 <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2015-02-08 20:44:41 +00:00 committed by Karel Zak
parent 2fc5a0d5bc
commit 559a5b6cf2
2 changed files with 2 additions and 2 deletions

View File

@ -1066,7 +1066,7 @@ int main(int argc, char **argv)
if (*usemask & (1<<con->id))
continue;
kill(con->pid, SIGHUP);
usleep(50000);
xusleep(50000);
kill(con->pid, SIGKILL);
}
}

View File

@ -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);