Added a console log flush when starting a simulator and potentially waiting for a telnet connection
This commit is contained in:
parent
3ae8a42dae
commit
eef35bd1dc
1 changed files with 12 additions and 0 deletions
|
@ -636,6 +636,10 @@ if (sim_con_ldsc.conn || sim_con_ldsc.txbfd) { /* connected or buffered
|
|||
if (!sim_con_ldsc.conn) {
|
||||
printf ("Running with Buffered Console\n"); /* print transition */
|
||||
fflush (stdout);
|
||||
if (sim_log) { /* log file? */
|
||||
fprintf (sim_log, "Running with Buffered Console\n");
|
||||
fflush (sim_log);
|
||||
}
|
||||
}
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
@ -646,6 +650,10 @@ for (i = 0; i < sec; i++) { /* loop */
|
|||
if (i) { /* if delayed */
|
||||
printf ("Running\n"); /* print transition */
|
||||
fflush (stdout);
|
||||
if (sim_log) { /* log file? */
|
||||
fprintf (sim_log, "Running\n");
|
||||
fflush (sim_log);
|
||||
}
|
||||
}
|
||||
return SCPE_OK; /* ready to proceed */
|
||||
}
|
||||
|
@ -655,6 +663,10 @@ for (i = 0; i < sec; i++) { /* loop */
|
|||
if ((i % 10) == 0) { /* Status every 10 sec */
|
||||
printf ("Waiting for console Telnet connection\n");
|
||||
fflush (stdout);
|
||||
if (sim_log) { /* log file? */
|
||||
fprintf (sim_log, "Waiting for console Telnet connection\n");
|
||||
fflush (sim_log);
|
||||
}
|
||||
}
|
||||
sim_os_sleep (1); /* wait 1 second */
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue