Index: includes/common.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/common.inc,v
retrieving revision 1.756.2.70
diff -u -r1.756.2.70 common.inc
--- includes/common.inc	16 Sep 2009 19:47:20 -0000	1.756.2.70
+++ includes/common.inc	19 Sep 2009 11:34:11 -0000
@@ -2662,7 +2662,7 @@
 function drupal_cron_run() {
   // Try to allocate enough time to run all the hook_cron implementations.
   if (function_exists('set_time_limit')) {
-    @set_time_limit($time_limit);
+    @set_time_limit(240);
   }
 
   // Fetch the cron semaphore
Index: modules/node/node.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/node/node.module,v
retrieving revision 1.947.2.18
diff -u -r1.947.2.18 node.module
--- modules/node/node.module	16 Sep 2009 18:21:06 -0000	1.947.2.18
+++ modules/node/node.module	19 Sep 2009 11:34:10 -0000
@@ -2320,7 +2320,7 @@
     else {
       // Try to allocate enough time to rebuild node grants
       if (function_exists('set_time_limit')) {
-        @set_time_limit($time_limit);
+        @set_time_limit(240);
       }
       $result = db_query("SELECT nid FROM {node}");
       while ($node = db_fetch_object($result)) {
