mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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")
|
||||
<< "HTTP query failed: " << ex.what();
|
||||
|
||||
#ifdef HAVE_EDITLINE
|
||||
/* Ensures that the terminal state is resetted */
|
||||
rl_deprep_terminal();
|
||||
|
||||
#endif /* HAVE_EDITLINE */
|
||||
|
||||
Application::Exit(EXIT_FAILURE);
|
||||
}
|
||||
@ -560,8 +561,10 @@ void ConsoleCommand::AutocompleteScriptCompletionHandler(boost::mutex& mutex, bo
|
||||
Log(LogCritical, "ConsoleCommand")
|
||||
<< "HTTP query failed: " << ex.what();
|
||||
|
||||
#ifdef HAVE_EDITLINE
|
||||
/* Ensures that the terminal state is resetted */
|
||||
rl_deprep_terminal();
|
||||
#endif /* HAVE_EDITLINE */
|
||||
|
||||
Application::Exit(EXIT_FAILURE);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user