From efa60d03b85eb1e711906ddd6f43a36a4e02034e Mon Sep 17 00:00:00 2001 From: Sparchatus Date: Wed, 23 Mar 2022 13:52:32 +0000 Subject: [PATCH] Fixed hello sleep --- usr/hello/hello.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr/hello/hello.c b/usr/hello/hello.c index 34d9357..d25b86a 100644 --- a/usr/hello/hello.c +++ b/usr/hello/hello.c @@ -15,7 +15,6 @@ #include -#include #include #include @@ -35,8 +34,8 @@ int main(int argc, char *argv[]) if (argc > 1 && !strncmp(argv[1], HELLO_CATCH_COMMAND, sizeof(HELLO_CATCH_COMMAND))) { while(1) { printf("Catch me if you can!\n"); - // wait for 1 second - sleep(1); + // wait a bit + for(volatile int j = 0; j < 500000000; ++j); } }