Skip to content

Commit

Permalink
Fix app initialization
Browse files Browse the repository at this point in the history
refs #6257
  • Loading branch information
gunnarbeutner committed Feb 20, 2015
1 parent 37e075c commit d1d488a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions icinga-app/icinga.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -611,9 +611,6 @@ VOID WINAPI ServiceMain(DWORD argc, LPSTR *argv)
*/
int main(int argc, char **argv)
{
/* must be called before using any other libbase functions */
Application::InitializeBase();

#ifndef _WIN32
rlimit rl;
if (getrlimit(RLIMIT_NOFILE, &rl) >= 0) {
Expand All @@ -633,6 +630,9 @@ int main(int argc, char **argv)
}
#endif /* _WIN32 */

/* must be called before using any other libbase functions */
Application::InitializeBase();

/* Set command-line arguments. */
Application::SetArgC(argc);
Application::SetArgV(argv);
Expand Down

0 comments on commit d1d488a

Please sign in to comment.