summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorKarel Zak2017-08-24 15:37:16 +0200
committerKarel Zak2017-08-24 15:48:46 +0200
commitc1154128db5f2359d7825d048134ac262af10b6b (patch)
treedd4bdcdb683cf78a9cfa4b4fe93f33bfe72a7c87 /Documentation
parentfdisk: handle SIGINT in dialogs as cancel (diff)
downloadkernel-qcow2-util-linux-c1154128db5f2359d7825d048134ac262af10b6b.tar.gz
kernel-qcow2-util-linux-c1154128db5f2359d7825d048134ac262af10b6b.tar.xz
kernel-qcow2-util-linux-c1154128db5f2359d7825d048134ac262af10b6b.zip
fdisk: fix readline interaction with signals
The high-level readline API is crazy to use with signals. Fortunately the library provides low-level rl_callback_* API. In this case we can use poll() to wait for input and control all signals, etc. This patch also a little changes fdisk behavior on CTRL+C and CTRL+D. The signals does not kill fdisk, but forces fdisk to return to the main menu, if already in the main menu then exit. If the disk layout has been modified than ask "Do you really want to exit...". Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/TODO9
1 files changed, 0 insertions, 9 deletions
diff --git a/Documentation/TODO b/Documentation/TODO
index 968002e75..68980c8af 100644
--- a/Documentation/TODO
+++ b/Documentation/TODO
@@ -160,15 +160,6 @@ libfdisk
- add support for Apple Partition Map (see libblkid/src/partitions/mac.c)
http://en.wikipedia.org/wiki/Apple_Partition_Map
- - catch SIGINT (Ctrl-C) and return to main menu.
- From Red Hat bugzilla #545488:
-
- While using fdisk normally, if you accidentally pressed the wrong button (to
- start a sequence of questions for some operation, e.g. 'c' to create
- partition). The tool tries too hard to keep asking you for valid input. You
- can't provide a blank or invalid input to get it to break out of the current
- dialog sequence and get back to the main menu.
-
misc
----