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