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:
10
sim_disk.c
10
sim_disk.c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user