mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
2164ff22b9
commit
c4941bb3c5
@ -479,6 +479,11 @@ int Application::Run(void)
|
||||
#ifndef _WIN32
|
||||
String exePath = GetExePath(m_ArgV[0]);
|
||||
|
||||
int fdcount = getdtablesize();
|
||||
|
||||
for (int i = 3; i < fdcount; i++)
|
||||
(void) close(i);
|
||||
|
||||
(void) execv(exePath.CStr(), m_ArgV);
|
||||
#else /* _WIN32 */
|
||||
STARTUPINFO si;
|
||||
|
Loading…
x
Reference in New Issue
Block a user