Make sure the timer thread is gone when calling fork()

refs #10410
This commit is contained in:
Gunnar Beutner 2015-10-20 22:55:16 +02:00
parent 438210651f
commit 3c6f0e31d9
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ static void SigHupHandler(int)
static bool Daemonize(void)
{
#ifndef _WIN32
Application::GetTP().Stop();
Application::UninitializeBase();
pid_t pid = fork();
if (pid == -1) {
@ -86,7 +86,7 @@ static bool Daemonize(void)
_exit(EXIT_SUCCESS);
}
Application::GetTP().Start();
Application::InitializeBase();
#endif /* _WIN32 */
return true;