mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
cdfeb28855
commit
2e18407270
@ -114,6 +114,15 @@ Application::~Application(void)
|
||||
|
||||
void Application::InitializeBase(void)
|
||||
{
|
||||
#ifndef _WIN32
|
||||
rlimit rl;
|
||||
if (getrlimit(RLIMIT_NOFILE, &rl) >= 0)
|
||||
for (rlim_t i = 3; i < rl.rlim_max; i++) {
|
||||
if (close(i) >= 0)
|
||||
std::cerr << "Closed FD " << i << " which we inherited from our parent process." << std::endl;
|
||||
}
|
||||
#endif /* _WIN32 */
|
||||
|
||||
Utility::ExecuteDeferredInitializers();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user