Un truc zarb entre do_action et inotify les faisait tourner en boucle.

Ce patch semble corriger cela.
This commit is contained in:
Alan Garcia 2013-12-11 14:54:14 +00:00
parent 2e8635680b
commit 9e01789940
1 changed files with 4 additions and 2 deletions

View File

@ -73,9 +73,11 @@ if (file_exists($LOCK_FILE) !== false){
}else{
// Previous cron failed!
$error_raise.="Lock file already exists. No process with PID $PID found! Previous cron failed...\n";
d("Removing lock file and trying to process the failed action...");
// No need to remove anything, we're going to recreate it
//d("Removing lock file and trying to process the failed action...");
// Delete the lock and continue to the next action
unlink($LOCK_FILE);
//unlink($LOCK_FILE);
// Lock with the current script's PID
if (file_put_contents($LOCK_FILE,$MY_PID) === false){