From 24dbb9a02319b9f1e231315c8391cf7609453973 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Tue, 20 Sep 2011 15:05:49 +0300 Subject: [PATCH] Do not pass proc name to Executer in FreeBSD --- projects/rscriptd/main.cpp | 8 ++++++++ projects/stargazer/main.cpp | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/projects/rscriptd/main.cpp b/projects/rscriptd/main.cpp index 93e1d605..354c0b36 100644 --- a/projects/rscriptd/main.cpp +++ b/projects/rscriptd/main.cpp @@ -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; diff --git a/projects/stargazer/main.cpp b/projects/stargazer/main.cpp index a8678893..3a987715 100644 --- a/projects/stargazer/main.cpp +++ b/projects/stargazer/main.cpp @@ -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); } -- 2.44.2