]> git.stg.codes - stg.git/commitdiff
Do not pass proc name to Executer in FreeBSD
authorMaxim Mamontov <faust.madf@gmail.com>
Tue, 20 Sep 2011 12:05:49 +0000 (15:05 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Tue, 20 Sep 2011 12:05:49 +0000 (15:05 +0300)
projects/rscriptd/main.cpp
projects/stargazer/main.cpp

index 93e1d6050c416e2ac90684c01e2f8da65d2ac2b7..354c0b36f3f71a19450093a67f7175e5af54072b 100644 (file)
@@ -117,12 +117,20 @@ switch (executerPid)
         //close(1);
         //close(2);
         //setsid();
+#ifdef LINUX
         Executer(*msgID, executerPid, procName);
+#else
+        Executer(*msgID, executerPid);
+#endif
         return 1;
 
     default:    // Parent
         if (executersPid.empty())
+#ifdef LINUX
             Executer(*msgID, executerPid, NULL);
+#else
+            Executer(*msgID, executerPid);
+#endif
         executersPid.insert(executerPid);
     }
 return 0;
index a8678893c4d7935e1c84e66aa3240812e1e700d9..3a9877155f2f9f373b80451738395791888e2be4 100644 (file)
@@ -140,12 +140,20 @@ switch (executerPid)
 
     case 0:
         delete settings;
+#ifdef LINUX
         Executer(*msgID, executerPid, procName);
+#else
+        Executer(*msgID, executerPid);
+#endif
         return 1;
 
     default:
         if (executersPid.empty()) {
+#ifdef LINUX
             Executer(*msgID, executerPid, NULL);
+#else
+            Executer(*msgID, executerPid);
+#endif
         }
         executersPid.insert(executerPid);
     }