From f00a7bb68ffccc0b0fd554b858a6bb0da138d476 Mon Sep 17 00:00:00 2001 From: catch Date: Fri, 7 Dec 2012 20:41:33 +0000 Subject: [PATCH] Issue #1775488 by amateescu, vijaycs85: Fixed drupal_cron_cleanup() is not converted to lock. --- core/includes/common.inc | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/core/includes/common.inc b/core/includes/common.inc index bdf23557dda..20d24a7c190 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -4927,8 +4927,6 @@ function drupal_cron_run() { queue($queue_name)->createQueue(); } } - // Register shutdown callback. - drupal_register_shutdown_function('drupal_cron_cleanup'); // Iterate through the modules calling their cron handlers (if any): foreach (module_implements('cron') as $module) { @@ -4970,22 +4968,6 @@ function drupal_cron_run() { return $return; } -/** - * Shutdown function: Performs cron cleanup. - * - * @see drupal_cron_run() - * @see drupal_register_shutdown_function() - */ -function drupal_cron_cleanup() { - // See if the semaphore is still locked. - if (variable_get('cron_semaphore', FALSE)) { - watchdog('cron', 'Cron run exceeded the time limit and was aborted.', array(), WATCHDOG_WARNING); - - // Release cron semaphore. - variable_del('cron_semaphore'); - } -} - /** * This function is kept only for backward compatibility. *