From a736a571d221993c410da36bdcd8a1a2bde3f0fa Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Sun, 26 Apr 2015 20:48:40 +0200 Subject: [PATCH] Same pkill trick as the Kobo scripts Only here to satisfy my OCD ;p --- platform/kindle/koreader.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/kindle/koreader.sh b/platform/kindle/koreader.sh index a9dd54b35..0d9362b4c 100755 --- a/platform/kindle/koreader.sh +++ b/platform/kindle/koreader.sh @@ -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