- Patch #259001 by paul.lovvik: drupal_cron_run should ignore a user abort.

merge-requests/26/head
Dries Buytaert 2008-05-30 17:41:51 +00:00
parent c6c26b5e23
commit b806c1b03b
1 changed files with 5 additions and 4 deletions

View File

@ -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);