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:
parent
2fc5a0d5bc
commit
559a5b6cf2
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue