Debian Codegraph @

tests/data/pk-spawn-test-ignore-term.sh

raw
1 #!/usr/bin/env bash
2
3 # Deliberately ignore SIGTERM so the daemon has to escalate to SIGKILL.
4 trap '' TERM
5
6 time=0.3
7
8 i=0
9 while true; do
10 echo -e "percentage\t$((i % 100))"
11 i=$((i + 10))
12 sleep ${time}
13 done