summaryrefslogtreecommitdiffstats
path: root/tests/misc/sigint-1.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/sigint-1.sh')
-rwxr-xr-xtests/misc/sigint-1.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/misc/sigint-1.sh b/tests/misc/sigint-1.sh
new file mode 100755
index 0000000..7b74c30
--- /dev/null
+++ b/tests/misc/sigint-1.sh
@@ -0,0 +1,9 @@
+echo before trap
+trap 'echo caught sigint' 2
+echo after trap
+
+for i in 1 2 3
+do
+ echo $i
+ sleep 5
+done