1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 10:10:04 +08:00
SpaceVim/bundle/neomake/tests/helpers/trap.sh

15 lines
215 B
Bash
Raw Normal View History

2020-06-13 14:06:35 +08:00
#!/bin/sh
#
# A test script that ignores SIGTERM.
trap 'echo not stopping on SIGTERM' TERM
# trap 'echo stopping on SIGHUP; exit' HUP
echo "Started: $$"
c=0
while true; do
c=$((c + 1))
echo $c
sleep .1
done