diff options
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ata/ata-disk.c | 4 | ||||
| -rw-r--r-- | sys/dev/ida/ida_disk.c | 4 | ||||
| -rw-r--r-- | sys/dev/twe/twe_freebsd.c | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/sys/dev/ata/ata-disk.c b/sys/dev/ata/ata-disk.c index 060ebac03e70..8a4377f943cf 100644 --- a/sys/dev/ata/ata-disk.c +++ b/sys/dev/ata/ata-disk.c @@ -352,8 +352,10 @@ addump(dev_t dev) blkno += blkcnt * dumppages; count -= blkcnt * dumppages; addr += PAGE_SIZE * dumppages; - if (cncheckc() != -1) + if (cncheckc() == 0x03) return EINTR; + else + printf("[CTRL-C to abort] "); } if (ata_wait(adp->controller, adp->unit, ATA_S_READY | ATA_S_DSC) < 0) diff --git a/sys/dev/ida/ida_disk.c b/sys/dev/ida/ida_disk.c index f307c68c0e83..d2d99f50cd4a 100644 --- a/sys/dev/ida/ida_disk.c +++ b/sys/dev/ida/ida_disk.c @@ -244,8 +244,10 @@ idad_dump(dev_t dev) count -= blkcnt * dumppages; addr += PAGE_SIZE * dumppages; - if (cncheckc() != -1) + if (cncheckc() == 0x03) return (EINTR); + else + printf("[CTRL-C to abort] "); } return (0); } diff --git a/sys/dev/twe/twe_freebsd.c b/sys/dev/twe/twe_freebsd.c index 6efac81487ea..d5acfda0d9a5 100644 --- a/sys/dev/twe/twe_freebsd.c +++ b/sys/dev/twe/twe_freebsd.c @@ -741,8 +741,10 @@ twed_dump(dev_t dev) count -= blkcnt * dumppages; addr += PAGE_SIZE * dumppages; - if (cncheckc() != -1) + if (cncheckc() == 0x03) return(EINTR); + else + printf("[CTRL-C to abort] "); } return(0); } |
