aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-01 20:43:38 +0000
committermerakor <cem@ckyln.com>2020-05-01 20:43:38 +0000
commitfd3be2c1f23527d383f50169e9bc77b43b71cea3 (patch)
treefafb4d39a1ca539b85a152ea618dc40c525d4705
parentf22ffc73b1246e6a3f441817d18f4fa9a551e349 (diff)
downloadcpt-fd3be2c1f23527d383f50169e9bc77b43b71cea3.tar.gz
kiss: fix interrupts in Korn Shell1.16.1
FossilOrigin-Name: 244a3f5884bc44fa8bb90444860510755a85f248741fa3a72b014cb1ac513718
-rwxr-xr-xkiss5
1 files changed, 5 insertions, 0 deletions
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 ||: