This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit b888f5f5e654896cefb1dc898a3b8e41e5f2a7cb
Author: Matias Nitsche <[email protected]>
AuthorDate: Mon Jun 15 12:26:21 2020 -0300

    pty: pause() instead of sleep for long time
---
 examples/pty_test/pty_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/pty_test/pty_test.c b/examples/pty_test/pty_test.c
index a4d90ef..262e576 100644
--- a/examples/pty_test/pty_test.c
+++ b/examples/pty_test/pty_test.c
@@ -394,7 +394,7 @@ int main(int argc, FAR char *argv[])
     {
       /* Nothing to do, then sleep to avoid eating all cpu time */
 
-      usleep(10000);
+      pause();
     }
 
   return EXIT_SUCCESS;

Reply via email to