diff options
Diffstat (limited to 'test/utils/catchsignal.sh')
-rwxr-xr-x | test/utils/catchsignal.sh | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test/utils/catchsignal.sh b/test/utils/catchsignal.sh index 117179143..cef00b2a5 100755 --- a/test/utils/catchsignal.sh +++ b/test/utils/catchsignal.sh | |||
@@ -4,20 +4,20 @@ | |||
4 | # License GPL v2 | 4 | # License GPL v2 |
5 | 5 | ||
6 | _term() { | 6 | _term() { |
7 | echo "Caught Signal" | 7 | echo "Caught Signal" |
8 | echo 1 | 8 | echo 1 |
9 | sleep 1 | 9 | sleep 1 |
10 | echo 2 | 10 | echo 2 |
11 | sleep 1 | 11 | sleep 1 |
12 | echo 3 | 12 | echo 3 |
13 | sleep 1 | 13 | sleep 1 |
14 | echo 4 | 14 | echo 4 |
15 | sleep 1 | 15 | sleep 1 |
16 | echo 5 | 16 | echo 5 |
17 | sleep 1 | 17 | sleep 1 |
18 | 18 | ||
19 | kill $pid | 19 | kill $pid |
20 | exit | 20 | exit |
21 | } | 21 | } |
22 | 22 | ||
23 | trap _term SIGTERM | 23 | trap _term SIGTERM |