]> git.mjollnir.org Git - moodle.git/commitdiff
moodle_request_shutdown(): silence errors when apache_child_terminate() is disallowed...
authormartinlanghoff <martinlanghoff>
Mon, 16 Apr 2007 00:24:27 +0000 (00:24 +0000)
committermartinlanghoff <martinlanghoff>
Mon, 16 Apr 2007 00:24:27 +0000 (00:24 +0000)
lib/moodlelib.php

index 645ed385110158980e805bfeb8dd1bcf640885b8..1c9696e1d4878fba943a33351a468c96d4d7ae9e 100644 (file)
@@ -6521,7 +6521,7 @@ function moodle_request_shutdown() {
         }
         if (memory_get_usage() > (int)$CFG->apachemaxmem) {
             trigger_error('Mem usage over $CFG->apachemaxmem: marking child for reaping.');
-            apache_child_terminate();
+            @apache_child_terminate();
         }
     }
 }