summaryrefslogtreecommitdiffstats
path: root/src/kash/tests/trap-int-1
diff options
context:
space:
mode:
Diffstat (limited to 'src/kash/tests/trap-int-1')
-rwxr-xr-xsrc/kash/tests/trap-int-16
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kash/tests/trap-int-1 b/src/kash/tests/trap-int-1
new file mode 100755
index 0000000..79e2dbb
--- /dev/null
+++ b/src/kash/tests/trap-int-1
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+trap 'echo "trap-int-1: caught SIGINT"; exit 0' INT
+kill -INT $$
+exit 2
+