X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/bdd372a64811c52e2924c6d391ce6801aabc8ada..3b856e83ad55125111fe5961d07d7524bd6ee283:/projects/rscriptd/main.cpp diff --git a/projects/rscriptd/main.cpp b/projects/rscriptd/main.cpp index 7e7f7f35..2739758c 100644 --- a/projects/rscriptd/main.cpp +++ b/projects/rscriptd/main.cpp @@ -430,7 +430,8 @@ WriteServLog("+++++++++++++++++++++++++++++++++++++++++++++"); while (nonstop.GetStatus()) { - usleep(100000); + struct timespec ts = {0, 100000000}; + nanosleep(&ts, NULL); } listener->Stop();