Commit a2a302f2 authored by nanahira's avatar nanahira

fix

parent e242c23a
......@@ -11,14 +11,12 @@ run_stop() {
kill "-$signalCode" "$pid"
wait "$pid"
fi
echo "Stopped"
exit $((128 + signalCode));
}
trap 'kill ${!}; run_stop 2' SIGTERM
trap 'kill ${!}; run_stop 15' SIGINT
echo "Started"
"$@" &
pid="$!"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment