mirror of
https://github.com/Cacti/cacti.git
synced 2026-12-05 22:54:19 +09:00
add fflush calls for proc_open pipes
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@2075 860744bd-22fc-0310-8c96-e9fe5004b5ca
This commit is contained in:
1 parent
0422996860
commit
2d8179ad66
1 file changed
+2
@@ -109,6 +109,7 @@ function rrdtool_execute($command_line, $log_to_stdout, $output_flag, $rrd_struc
|
||||
$fp = popen(read_config_option("path_rrdtool") . escape_command(" $command_line"), "r");
|
||||
}else{
|
||||
fwrite(rrd_get_fd($rrd_struc, RRDTOOL_PIPE_CHILD_READ), escape_command(" $command_line") . "\r\n");
|
||||
fflush(rrd_get_fd($rrd_struc, RRDTOOL_PIPE_CHILD_READ));
|
||||
}
|
||||
}elseif ($config["cacti_server_os"] == "win32") {
|
||||
/* an empty $rrd_struc array means no fp is available */
|
||||
@@ -116,6 +117,7 @@ function rrdtool_execute($command_line, $log_to_stdout, $output_flag, $rrd_struc
|
||||
$fp = popen(read_config_option("path_rrdtool") . escape_command(" $command_line"), "rb");
|
||||
}else{
|
||||
fwrite(rrd_get_fd($rrd_struc, RRDTOOL_PIPE_CHILD_READ), escape_command(" $command_line") . "\r\n");
|
||||
fflush(rrd_get_fd($rrd_struc, RRDTOOL_PIPE_CHILD_READ));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user