1
0
mirror of https://github.com/Icinga/icinga2.git synced 2025-04-08 17:05:25 +02:00

Merge pull request from Icinga/9249

Application::Exit(): don't exit(), but _exit(), even in debug build mode
This commit is contained in:
Julian Brost 2023-03-10 16:04:54 +01:00 committed by GitHub
commit 66b039df9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -112,11 +112,7 @@ void Application::Exit(int rc)
}
UninitializeBase();
#ifdef I2_DEBUG
exit(rc);
#else /* I2_DEBUG */
_exit(rc); // Yay, our static destructors are pretty much beyond repair at this point.
#endif /* I2_DEBUG */
}
void Application::InitializeBase()