diff --git a/lib/cron_init.php b/lib/cron_init.php index 64a77e78..1eca77b1 100644 --- a/lib/cron_init.php +++ b/lib/cron_init.php @@ -118,7 +118,7 @@ while ($fName = readdir($lockDirHandle)) { } // Check if cron is running or has died. - $check_pid = substr(strstr($fName, "-"), 1); + $check_pid = substr(strrchr($fName, "-"), 1); system("kill -CHLD " . (int)$check_pid . " 1> /dev/null 2> /dev/null", $check_pid_return); if ($check_pid_return == 1) {