From fd3be2c1f23527d383f50169e9bc77b43b71cea3 Mon Sep 17 00:00:00 2001 From: merakor Date: Fri, 1 May 2020 20:43:38 +0000 Subject: kiss: fix interrupts in Korn Shell FossilOrigin-Name: 244a3f5884bc44fa8bb90444860510755a85f248741fa3a72b014cb1ac513718 --- kiss | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kiss') diff --git a/kiss b/kiss index e1c108e..427914c 100755 --- a/kiss +++ b/kiss @@ -1460,6 +1460,11 @@ main() { KISS_ROOT=${KISS_ROOT%/} } + # On 'ksh', Ctrl + C does not send an interrupt signal by default. + # This would cause a prompt to pass while the user would be trying + # to cancel, or the user would want to abort building a package. + stty intr "^C" + # This allows for automatic setup of a KISS chroot and will # do nothing on a normal system. mkdir -p "${sys_db:=$KISS_ROOT/$pkg_db}" 2>/dev/null ||: -- cgit v1.2.3