POSIX.1-2001 declares usleep is obsolete. Reference: http://pubs.opengroup.org/onlinepubs/009695399/functions/usleep.html Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- term-utils/agetty.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/term-utils/agetty.c b/term-utils/agetty.c index 754a43f..244ea29 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -1383,7 +1383,10 @@ static char *get_logname(struct options *op, struct termios *tp, struct chardata /* Do not report trivial like EINTR/EIO errors. */ if (errno == EINTR || errno == EAGAIN) { - usleep(1000); + struct timespec waittime; + waittime.tv_sec = 0; + waittime.tv_nsec = 1000000; + nanosleep(&waittime, NULL); continue; } switch (errno) { -- 1.7.12.2 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html