KillExecuters();
}
//-----------------------------------------------------------------------------
-#ifdef NO_DAEMON
-int ForkAndWait(const std::string &)
-#else
-int ForkAndWait(const std::string & confDir)
-#endif
+int ForkAndWait()
{
#ifndef NO_DAEMON
pid_t childPid = fork();
cfg->ReadString("ScriptOnConnect", &onConnect, "/etc/rscriptd/OnConnect");
cfg->ReadString("ScriptOnDisconnect", &onDisconnect, "/etc/rscriptd/OnDisconnect");
-if (ForkAndWait(confDir) < 0)
+if (ForkAndWait() < 0)
{
auto & WriteServLog = STG::Logger::get();
WriteServLog("Fork error!");