mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-31 01:24:19 +02:00
parent
438210651f
commit
3c6f0e31d9
@ -53,7 +53,7 @@ static void SigHupHandler(int)
|
|||||||
static bool Daemonize(void)
|
static bool Daemonize(void)
|
||||||
{
|
{
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
Application::GetTP().Stop();
|
Application::UninitializeBase();
|
||||||
|
|
||||||
pid_t pid = fork();
|
pid_t pid = fork();
|
||||||
if (pid == -1) {
|
if (pid == -1) {
|
||||||
@ -86,7 +86,7 @@ static bool Daemonize(void)
|
|||||||
_exit(EXIT_SUCCESS);
|
_exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
Application::GetTP().Start();
|
Application::InitializeBase();
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user