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> |
||
---|---|---|
.. | ||
expected | ||
helpers | ||
ts | ||
.gitignore | ||
Makemodule.am | ||
commands.sh | ||
functions.sh | ||
run.sh |