mirror of
https://codeberg.org/mclemens/tsmmonitor2.git
synced 2024-12-22 08:06:59 -05:00
- 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");
|
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 = new PollD($adodb, $config["server_os"]);
|
||||||
$tmonpolld->controlPollD("on");
|
$tmonpolld->controlPollD("on");
|
||||||
$tmonpolld->poll();
|
$tmonpolld->poll();
|
||||||
|
@ -35,6 +35,15 @@
|
|||||||
|
|
||||||
include_once("../includes/global.php");
|
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 = new PollD_MP($config);
|
||||||
$tmonpolld->controlPollD("on");
|
$tmonpolld->controlPollD("on");
|
||||||
$tmonpolld->poll();
|
$tmonpolld->poll();
|
||||||
|
Loading…
Reference in New Issue
Block a user