[rtems commit] libmisc/redirector/stdio-redirect.c: Use UL constants since usleep() should take more than 16-bit constants
Joel Sherrill
joel at rtems.org
Thu Oct 16 13:50:01 UTC 2014
Module: rtems
Branch: master
Commit: 9488c9d1f5e518fdccbc89b09364297fd8f4d7c2
Changeset: http://git.rtems.org/rtems/commit/?id=9488c9d1f5e518fdccbc89b09364297fd8f4d7c2
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Mon Oct 13 16:14:09 2014 -0500
libmisc/redirector/stdio-redirect.c: Use UL constants since usleep() should take more than 16-bit constants
---
cpukit/libmisc/redirector/stdio-redirect.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cpukit/libmisc/redirector/stdio-redirect.c b/cpukit/libmisc/redirector/stdio-redirect.c
index 86ecf9f..3f896dd 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)
{
- sleep(250);
+ usleep(250UL * 1000000UL);
}
rtems_stdio_redirect_lock(sr);
More information about the vc
mailing list