- Fixed Bug #0000012: Allow PollD to run forever. PHPs 'max_execution_time' cannot apply here.
This commit is contained in:
parent
8809708d3d
commit
5fcf79d57b
@ -35,6 +35,15 @@
|
||||
|
||||
include_once("../includes/global.php");
|
||||
|
||||
// If possible disable execution timeout.
|
||||
if (ini_get('safe_mode')) {
|
||||
echo "\nWARN: PHP 'safe_mode' is on. Cannot disable 'max_execution_time' parameter.\n";
|
||||
echo " Please adjust 'max_execution_time' manually in ".get_cfg_var('cfg_file_path')."\n";
|
||||
echo " or turn off 'safe_mode' for the PHP CLI.\n\n";
|
||||
} else {
|
||||
set_time_limit(0);
|
||||
}
|
||||
|
||||
$tmonpolld = new PollD($adodb, $config["server_os"]);
|
||||
$tmonpolld->controlPollD("on");
|
||||
$tmonpolld->poll();
|
||||
|
@ -35,6 +35,15 @@
|
||||
|
||||
include_once("../includes/global.php");
|
||||
|
||||
// If possible disable execution timeout.
|
||||
if (ini_get('safe_mode')) {
|
||||
echo "\nWARN: PHP 'safe_mode' is on. Cannot disable 'max_execution_time' parameter.\n";
|
||||
echo " Please adjust 'max_execution_time' manually in ".get_cfg_var('cfg_file_path')."\n";
|
||||
echo " or turn off 'safe_mode' for the PHP CLI.\n\n";
|
||||
} else {
|
||||
set_time_limit(0);
|
||||
}
|
||||
|
||||
$tmonpolld = new PollD_MP($config);
|
||||
$tmonpolld->controlPollD("on");
|
||||
$tmonpolld->poll();
|
||||
|
Loading…
Reference in New Issue
Block a user