diff options
author | ps <ps@FreeBSD.org> | 2001-03-27 06:24:08 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2001-03-27 06:24:08 +0000 |
commit | 8b18de63df566be3be6d1961300d2c95705fad4b (patch) | |
tree | 6ca650a284ca35292c23b933c42dfe1083f9ba93 /sys/dev/ida/ida_disk.c | |
parent | 24c4b1e75b8af36f530a3eabf2d1a17810637a5f (diff) | |
download | FreeBSD-src-8b18de63df566be3be6d1961300d2c95705fad4b.zip FreeBSD-src-8b18de63df566be3be6d1961300d2c95705fad4b.tar.gz |
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
Diffstat (limited to 'sys/dev/ida/ida_disk.c')
-rw-r--r-- | sys/dev/ida/ida_disk.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ida/ida_disk.c b/sys/dev/ida/ida_disk.c index f307c68..d2d99f5 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); } |