1
0
mirror of https://github.com/simh/simh.git synced 2026-05-18 18:49:01 +00:00

SCP: Properly match DEVICE only MTAB entries and fix flush queueing

This commit is contained in:
Mark Pizzolato
2026-03-05 12:08:04 -10:00
parent bdd2612a8a
commit 682c59edcf

6
scp.c
View File

@@ -6799,7 +6799,7 @@ else {
}
if ((*cptr == 0) || (*cptr == ';') || (*cptr == '#')) { /* now eol? */
return (lvl == MTAB_VDV)?
return ((lvl&MTAB_VDV) == MTAB_VDV)?
show_device (ofile, dptr, 0):
show_unit (ofile, dptr, uptr, -1);
}
@@ -10019,7 +10019,7 @@ tmxr_flush_log_files ();
t_stat
flush_svc (UNIT *uptr)
{
sim_activate_after (uptr, sim_flush_interval * 1000000);
sim_activate_after_d (uptr, sim_flush_interval * 1000000.0);
sim_flush_buffered_files (FALSE);
return SCPE_OK;
}
@@ -10224,7 +10224,7 @@ if (signal (SIGTERM, int_handler) == SIG_ERR) { /* set WRU */
}
if (sim_step) /* set step timer */
sim_sched_step ();
sim_activate_after (&sim_flush_unit, sim_flush_interval * 1000000);/* Enable periodic buffer flushing */
sim_activate_after_d (&sim_flush_unit, sim_flush_interval * 1000000.0);/* Enable periodic buffer flushing */
stop_cpu = FALSE;
sim_is_running = TRUE; /* flag running */
fflush(stdout); /* flush stdout */