From: Maxim Mamontov Date: Tue, 20 Sep 2011 12:05:49 +0000 (+0300) Subject: Do not pass proc name to Executer in FreeBSD X-Git-Tag: 2.408-rc1~13 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/24dbb9a02319b9f1e231315c8391cf7609453973 Do not pass proc name to Executer in FreeBSD --- 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); }