mirror of
https://github.com/simh/simh.git
synced 2026-01-26 04:01:38 +00:00
SCP: Be sure to flush output files when aborting.
Emit a last gasp message prior to flushing files before aborting.
This commit is contained in:
@@ -231,8 +231,8 @@ if ((!callback) || !ctx->asynch_io)
|
||||
"sim_disk AIO_CALL(op=%d, unit=%d, lba=0x%X, sects=%d)\n",\
|
||||
op, (int)(uptr - ctx->dptr->units), _lba, _sects);\
|
||||
\
|
||||
if (ctx->callback) \
|
||||
abort(); /* horrible mistake, stop */ \
|
||||
if (ctx->callback) /* horrible mistake, stop */ \
|
||||
sim_abort ("AIO_CALL error", __FILE__, __LINE__); \
|
||||
ctx->io_dop = op; \
|
||||
ctx->lba = _lba; \
|
||||
ctx->buf = _buf; \
|
||||
@@ -314,7 +314,7 @@ DISK_PCALLBACK callback = ctx->callback;
|
||||
sim_debug_unit (ctx->dbit, uptr, "_disk_completion_dispatch(unit=%d, dop=%d, callback=%p)\n", (int)(uptr - ctx->dptr->units), ctx->io_dop, (void *)(ctx->callback));
|
||||
|
||||
if (ctx->io_dop != DOP_DONE)
|
||||
abort(); /* horribly wrong, stop */
|
||||
sim_abort ("_disk_completion_dispatch()", __FILE__, __LINE__); /* horribly wrong, stop */
|
||||
|
||||
if (ctx->callback && ctx->io_dop == DOP_DONE) {
|
||||
ctx->callback = NULL;
|
||||
|
||||
Reference in New Issue
Block a user