dumb-init/test/print-signals

15 lines
227 B
Text
Raw Normal View History

2015-08-05 20:56:55 +03:00
#!/bin/sh -eu
# Print received signals into a file, one per line
file="$1"
. ./testlib.sh
for i in $(catchable_signals); do
trap "echo $i > \"$file\"" "$i"
done
echo 'ready' > "$file"
# loop forever
while :; do true; done