]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/authorization/stress/stress.cpp
Explicit shell specification removed
[stg.git] / projects / stargazer / plugins / authorization / stress / stress.cpp
index 5d41a91dacf60b86167fe89ebc1a327daccd9f07..7273ed483479ede97445007aec28e41836a75f1e 100644 (file)
@@ -176,7 +176,8 @@ if (isRunning)
         {
         if (!isRunning)
             break;
         {
         if (!isRunning)
             break;
-        usleep(200000);
+        struct timespec ts = {0, 200000000};
+        nanosleep(&ts, NULL);
         }
 
     //after 5 seconds waiting thread still running. now killing it
         }
 
     //after 5 seconds waiting thread still running. now killing it