libmisc/redirector/stdio-redirect.c: Use sleep not usleep and do not overflow 16-bit int

This commit is contained in:
Joel Sherrill
2014-10-12 16:05:31 -05:00
parent 308bb9b83f
commit 388a4e439a

View File

@@ -259,7 +259,7 @@ rtems_stdio_redirect_close(rtems_stdio_redirect* sr)
while (sr->state & RTEMS_STDIO_REDIRECT_FINISHED)
{
usleep(250 * 1000 * 1000);
sleep(250);
}
rtems_stdio_redirect_lock(sr);