mirror of https://github.com/Icinga/icinga2.git
Fix windows build
This commit is contained in:
parent
51b900b307
commit
eea42c6807
|
@ -533,9 +533,10 @@ void ConsoleCommand::ExecuteScriptCompletionHandler(boost::mutex& mutex, boost::
|
||||||
Log(LogCritical, "ConsoleCommand")
|
Log(LogCritical, "ConsoleCommand")
|
||||||
<< "HTTP query failed: " << ex.what();
|
<< "HTTP query failed: " << ex.what();
|
||||||
|
|
||||||
|
#ifdef HAVE_EDITLINE
|
||||||
/* Ensures that the terminal state is resetted */
|
/* Ensures that the terminal state is resetted */
|
||||||
rl_deprep_terminal();
|
rl_deprep_terminal();
|
||||||
|
#endif /* HAVE_EDITLINE */
|
||||||
|
|
||||||
Application::Exit(EXIT_FAILURE);
|
Application::Exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
@ -560,8 +561,10 @@ void ConsoleCommand::AutocompleteScriptCompletionHandler(boost::mutex& mutex, bo
|
||||||
Log(LogCritical, "ConsoleCommand")
|
Log(LogCritical, "ConsoleCommand")
|
||||||
<< "HTTP query failed: " << ex.what();
|
<< "HTTP query failed: " << ex.what();
|
||||||
|
|
||||||
|
#ifdef HAVE_EDITLINE
|
||||||
/* Ensures that the terminal state is resetted */
|
/* Ensures that the terminal state is resetted */
|
||||||
rl_deprep_terminal();
|
rl_deprep_terminal();
|
||||||
|
#endif /* HAVE_EDITLINE */
|
||||||
|
|
||||||
Application::Exit(EXIT_FAILURE);
|
Application::Exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue