]> git.stg.codes - stg.git/blobdiff - projects/rscriptd/main.cpp
Do not pass proc name to Executer in FreeBSD
[stg.git] / projects / rscriptd / main.cpp
index 93e1d6050c416e2ac90684c01e2f8da65d2ac2b7..354c0b36f3f71a19450093a67f7175e5af54072b 100644 (file)
@@ -117,12 +117,20 @@ switch (executerPid)
         //close(1);
         //close(2);
         //setsid();
         //close(1);
         //close(2);
         //setsid();
+#ifdef LINUX
         Executer(*msgID, executerPid, procName);
         Executer(*msgID, executerPid, procName);
+#else
+        Executer(*msgID, executerPid);
+#endif
         return 1;
 
     default:    // Parent
         if (executersPid.empty())
         return 1;
 
     default:    // Parent
         if (executersPid.empty())
+#ifdef LINUX
             Executer(*msgID, executerPid, NULL);
             Executer(*msgID, executerPid, NULL);
+#else
+            Executer(*msgID, executerPid);
+#endif
         executersPid.insert(executerPid);
     }
 return 0;
         executersPid.insert(executerPid);
     }
 return 0;