mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-04 18:51:17 +00:00
- Restructure main funcs for clean defer-stack-unwinds - Fix Docker container to handle signals properly - Introduce runsvinit for container init process - Integration test
18 lines
147 B
Bash
Executable File
18 lines
147 B
Bash
Executable File
#!/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!
|
|
|