First draft

This commit is contained in:
Peter Bourgon committed 2015-09-25 14:37:17 +02:00
1 parent 33c958bc9d
commit 4e6968fe8f
8 files changed
+247

No files matched your search

Executable
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
handle() {
echo "got signal"
exit
}
trap "handle" SIGINT
for i in `seq 1 5`
do
echo foo: $i
sleep 1
done
echo foo: terminating!