X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/23fc5b5a8d431755d03bb91924084fdcbdedc216..53c1823aaef2eb8d547a8eed8cfe12fe7204ca79:/projects/rscriptd/main.cpp?ds=inline diff --git a/projects/rscriptd/main.cpp b/projects/rscriptd/main.cpp index 344a2611..2739758c 100644 --- a/projects/rscriptd/main.cpp +++ b/projects/rscriptd/main.cpp @@ -251,12 +251,12 @@ switch (executerPid) //close(1); //close(2); //setsid(); - Executer(msgKey, *msgID, executerPid, procName); + Executer(*msgID, executerPid, procName); return 1; default: // Parent if (executersPid.empty()) - Executer(msgKey, *msgID, executerPid, NULL); + Executer(*msgID, executerPid, NULL); executersPid.insert(executerPid); } return 0; @@ -430,7 +430,8 @@ WriteServLog("+++++++++++++++++++++++++++++++++++++++++++++"); while (nonstop.GetStatus()) { - usleep(100000); + struct timespec ts = {0, 100000000}; + nanosleep(&ts, NULL); } listener->Stop();