X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/12aae76fbeaa3dc91ab5ecad5531a2c1925340d2..e1c08c2c174c75d7c5cd2ec5d0b974c6f240ba7e:/projects/stargazer/main.cpp?ds=inline diff --git a/projects/stargazer/main.cpp b/projects/stargazer/main.cpp index 63d5a6b0..2c789ff6 100644 --- a/projects/stargazer/main.cpp +++ b/projects/stargazer/main.cpp @@ -386,6 +386,7 @@ switch (stgChildPid) break; default: + struct timespec ts = {0, 200000000}; for (int i = 0; i < 120 * 5; i++) { if (access(startFile.c_str(), F_OK) == 0) @@ -399,7 +400,7 @@ switch (stgChildPid) unlink(startFile.c_str()); exit(1); } - usleep(200000); + nanosleep(&ts, NULL); } unlink(startFile.c_str()); exit(1);