[PATCH 05/23] libmisc/redirector/stdio-redirect.c: Use sleep not usleep and do not overflow 16-bit int

Joel Sherrill joel.sherrill at oarcorp.com
Mon Oct 13 14:18:12 UTC 2014


---
 cpukit/libmisc/redirector/stdio-redirect.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/libmisc/redirector/stdio-redirect.c b/cpukit/libmisc/redirector/stdio-redirect.c
index 05a263d..86ecf9f 100644
--- a/cpukit/libmisc/redirector/stdio-redirect.c
+++ b/cpukit/libmisc/redirector/stdio-redirect.c
@@ -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);
-- 
1.9.3




More information about the devel mailing list