1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

SCP: Add prompt prior to fatal exit allowing error messages reading

As discussed in #594
This commit is contained in:
Mark Pizzolato
2018-07-08 14:55:55 -07:00
parent 9b95115a2a
commit d593cdb98b
2 changed files with 13 additions and 2 deletions

View File

@@ -257,7 +257,10 @@ else
if (stat == ETIMEDOUT)
timedout = TRUE;
else {
fprintf (stderr, "sim_idle_ms_sleep(%u): pthread_cond_timedwait() return %d - %s\n", msec, stat, strerror (stat));
char ans[32];
fprintf (stderr, "sim_idle_ms_sleep(%u): pthread_cond_timedwait() return %d - %s\r\n", msec, stat, strerror (stat));
read_line_p ("Hit Return to exit: ", ans, sizeof (ans) - 1, stdin);
abort ();
}
sim_idle_wait = FALSE;