ugly but werkable kill script fix

This commit is contained in:
Luke Smith 2018-09-29 15:52:05 -04:00
parent c003ba9c34
commit 30f8c087c5

View file

@ -15,10 +15,15 @@ updateicon() { \
}
killrecording() {
kill -9 "$(cat ~/.recordingpid)"
recpid="$(cat ~/.recordingpid)"
# kill with SIGTERM, allowing finishing touches.
kill -15 "$recpid"
rm -f ~/.recordingpid
updateicon ""
pkill -RTMIN+9 i3blocks
# even after SIGTERM, ffmpeg may still run, so SIGKILL it.
sleep 3
kill -9 "$recpid"
exit
}