diff options
author | David Rothstein <drothstein@gmail.com> | 2014-11-02 13:57:55 -0500 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2014-11-02 13:57:55 -0500 |
commit | 417fae5b2547d3b27071eab5cd0f23356956b176 (patch) | |
tree | acdb5f8b175d0ee46f6ad93d2c2f799f797131d6 /includes | |
parent | 90d6f05facedd14e6abf39b86bddff5ae1320eed (diff) | |
download | brdo-417fae5b2547d3b27071eab5cd0f23356956b176.tar.gz brdo-417fae5b2547d3b27071eab5cd0f23356956b176.tar.bz2 |
Issue #1775488 by mgifford, vijaycs85, amateescu | chx: Fixed drupal_cron_cleanup is not converted to lock.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/includes/common.inc b/includes/common.inc index a38d13b47..e7e293917 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -5287,8 +5287,6 @@ function drupal_cron_run() { foreach ($queues as $queue_name => $info) { DrupalQueue::get($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) { @@ -5340,10 +5338,13 @@ function drupal_cron_run() { } /** - * Shutdown function: Performs cron cleanup. + * DEPRECATED: Shutdown function: Performs cron cleanup. * - * @see drupal_cron_run() - * @see drupal_register_shutdown_function() + * This function is deprecated because the 'cron_semaphore' variable it + * references no longer exists. It is therefore no longer used as a shutdown + * function by Drupal core. + * + * @deprecated */ function drupal_cron_cleanup() { // See if the semaphore is still locked. |