1
0
mirror of https://github.com/simh/simh.git synced 2026-02-09 17:52:36 +00:00

Fixed Asynch I/O issues which may leave pending asynch I/O in limbo when device resets happen (found by Sergey Oboguev)

This commit is contained in:
Mark Pizzolato
2012-04-10 05:43:59 -07:00
parent a339dae651
commit 1cb4eb7960
5 changed files with 18 additions and 1 deletions

View File

@@ -1073,6 +1073,16 @@ if (close_function (fileref) == EOF)
return SCPE_OK;
}
t_stat sim_disk_reset (UNIT *uptr)
{
if (!(uptr->flags & UNIT_ATT)) /* attached? */
return SCPE_OK;
_sim_disk_io_flush(uptr);
AIO_VALIDATE;
AIO_UPDATE_QUEUE;
return SCPE_OK;
}
/* Factory bad block table creation routine
This routine writes a DEC standard 044 compliant bad block table on the