fixed: sometimes program hanged on starting postprocess/nzbprocess in server (not daemon) mode (bug introduced in r250)

This commit is contained in:
Andrey Prygunkov
2008-11-25 18:26:53 +00:00
parent 583b36667f
commit 63cfccab40

View File

@@ -324,6 +324,7 @@ int ScriptController::Execute()
#ifdef CHILD_WATCHDOG
fwrite("\n", 1, 2, stdout);
fflush(stdout);
#endif
execve(m_szScript, (char* const*)m_szArgs, (char* const*)pEnvironmentStrings);