ugly but werkable kill script fix
This commit is contained in:
parent
c003ba9c34
commit
30f8c087c5
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue