From b5bf49e168925bbb901471de3e389b6d8cb2ad5c Mon Sep 17 00:00:00 2001 From: jim-p Date: Fri, 5 Apr 2013 09:51:23 -0400 Subject: Flush output buffer while running bgp status commands to avoid a php crash --- config/openbgpd/openbgpd_status.php | 1 + 1 file changed, 1 insertion(+) diff --git a/config/openbgpd/openbgpd_status.php b/config/openbgpd/openbgpd_status.php index 3db2781a..e6f69d07 100644 --- a/config/openbgpd/openbgpd_status.php +++ b/config/openbgpd/openbgpd_status.php @@ -62,6 +62,7 @@ function doCmdT($title, $command) { $fd = popen("{$command} 2>&1", "r"); while (($line = fgets($fd)) !== FALSE) { echo htmlspecialchars($line, ENT_NOQUOTES); + ob_flush(); } pclose($fd); } -- cgit v1.2.3