From 3c6f0e31d9177bf0736ad247df0bb3bf0696e969 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 20 Oct 2015 22:55:16 +0200 Subject: [PATCH] Make sure the timer thread is gone when calling fork() refs #10410 --- lib/cli/daemoncommand.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cli/daemoncommand.cpp b/lib/cli/daemoncommand.cpp index 075b91474..d938e20f6 100644 --- a/lib/cli/daemoncommand.cpp +++ b/lib/cli/daemoncommand.cpp @@ -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;