1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 07:00:05 +08:00
SpaceVim/bundle/neomake/tests/helpers/trap.sh
2020-06-13 14:06:35 +08:00

15 lines
215 B
Bash

#!/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