Compare commits

..

No commits in common. "75df2530e34fa47cc3ca7141ade909e9082eb030" and "94583cdcca610d73f979c5b5812b772fbabcf6b1" have entirely different histories.

View file

@ -17,17 +17,4 @@ if test $# -eq 0 ; then
exit 1
fi
LOGGER="${LOGGER:--t $1}"
propagate_signal () {
logger ${LOGGER} "Received $1 signal"
jobs -p | xargs kill -$1
}
for signal in HUP INT QUIT USR1 USR2 TERM; do
trap "propagate_signal ${signal}" ${signal}
done
$@ 2>&1 | logger ${LOGGER} &
wait $!
$@ 2>&1 | logger ${LOGGER}