From f2a404d5a6edc33fb204d23cca7c62582d9edfa5 Mon Sep 17 00:00:00 2001 From: Paul Saab Date: Tue, 27 Mar 2001 06:24:08 +0000 Subject: Change the dump routines to only abort if control-c is pressed. If any other key is pressed, print a message stating that control-c is how to abort. Reviewed by: peter --- sys/dev/ata/ata-disk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev/ata') 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) -- cgit v1.3