Same pkill trick as the Kobo scripts

Only here to satisfy my OCD ;p
This commit is contained in:
NiLuJe
2015-04-26 20:48:40 +02:00
parent 6f815e2bdf
commit a736a571d2

View File

@@ -208,7 +208,7 @@ fi
./reader.lua "$@" 2> crash.log
# clean up our own process tree in case the reader crashed (if needed, to avoid flooding KUAL's log)
if pidof reader.lua > /dev/null 2>&1 ; then
if pkill -0 reader.lua ; then
logmsg "Sending a SIGTERM to stray KOreader processes . . ."
killall -TERM reader.lua
fi