Merge pull request #747 from oliverschmidt/master

Only wait for a keypress if the user is told to press a key.
This commit is contained in:
Oliver Schmidt 2014-07-04 20:00:40 +02:00
commit 80edbe14a9
2 changed files with 4 additions and 0 deletions

View File

@ -42,8 +42,10 @@
void
error_exit(void)
{
#if LOG_CONF_ENABLED
log_message("Press any key to continue ...", "");
ctk_arch_getkey();
#endif /* LOG_CONF_ENABLED */
exit(EXIT_FAILURE);
}
/*-----------------------------------------------------------------------------------*/

View File

@ -42,8 +42,10 @@
void
error_exit(void)
{
#if LOG_CONF_ENABLED
log_message("Press any key to continue ...", "");
ctk_arch_getkey();
#endif /* LOG_CONF_ENABLED */
exit(EXIT_FAILURE);
}
/*-----------------------------------------------------------------------------------*/