From b806c1b03b19cc13241db0517892c60d27c085a1 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 30 May 2008 17:41:51 +0000 Subject: - Patch #259001 by paul.lovvik: drupal_cron_run should ignore a user abort. --- includes/common.inc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index 598849907..bdf3d1867 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -2502,10 +2502,11 @@ function page_set_cache() { * Returns TRUE if ran successfully */ function drupal_cron_run() { - // If not in 'safe mode', increase the maximum execution time: - if (!ini_get('safe_mode')) { - set_time_limit(240); - } + // Allow execution to continue even if the request gets canceled. + @ignore_user_abort(TRUE); + + // Increase the maximum execution time. + @set_time_limit(240); // Fetch the cron semaphore $semaphore = variable_get('cron_semaphore', FALSE); -- cgit v1.2.3