]> git.stg.codes - stg.git/blobdiff - projects/stargazer/main.cpp
Use PEN assigned by IANA instead of taken from Lev Valkin's sample
[stg.git] / projects / stargazer / main.cpp
index 5f4c7f24c09230a831eaa72edd1770e87752596a..5014c5cf18da6057234fd8e9f211c4a534ba93d2 100644 (file)
@@ -35,6 +35,7 @@
 #include <csignal>
 #include <cerrno>
 #include <cstdio>
+#include <cstdlib> // srandom, exit
 #include <fstream>
 #include <vector>
 #include <set>
@@ -620,11 +621,11 @@ srandom(stgTime);
  *
  * (c) man 2 nice
  */
-errno = 0;
+/*errno = 0;
 if (nice(-19) && errno) {
     printfd(__FILE__, "nice failed: '%s'\n", strerror(errno));
     WriteServLog("nice failed: '%s'", strerror(errno));
-}
+}*/
 
 WriteServLog("Stg started successfully.");
 WriteServLog("+++++++++++++++++++++++++++++++++++++++++++++");