Same pkill trick as the Kobo scripts
Only here to satisfy my OCD ;p
This commit is contained in:
1 parent
6f815e2bdf
commit
a736a571d2
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user