[rrd-developers] [gombasg at sztaki.hu: Bug#239565: rrdtool: stdout flushing is missing from the rrdexplorer example]
Matt Zimmerman
mdz at debian.org
Wed Mar 24 00:29:54 MET 2004
----- Forwarded message from Gabor Gombas <gombasg at sztaki.hu> -----
Date: Tue, 23 Mar 2004 13:50:49 +0100
From: Gabor Gombas <gombasg at sztaki.hu>
Resent-From: Gabor Gombas <gombasg at sztaki.hu>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: Bug#239565: rrdtool: stdout flushing is missing from the rrdexplorer example
Package: rrdtool
Version: 1.0.46-3
Severity: minor
Tags: patch
Hi,
The rrdexporer example shipped with the rrdtool does not work. Due to
stdout buffering, png.cgi outputs the PNG data _before_ the MIME headers
and this makes apache unhappy. Fix:
--- png.cgi.orig 2004-03-23 13:38:45.000000000 +0100
+++ png.cgi 2004-03-23 13:38:55.000000000 +0100
@@ -30,6 +30,7 @@
print "Content-type: image/png\n"; # Use html
print "Cache-Control: no-cache\n"; # Ensure no cashing of page
print "Expires: $expiredate\n\n"; # Expire now
+$| = 1;
$root = $ENV{"DOCUMENT_ROOT"};
# see rrdfetchnames
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (990, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.5-rc1
Locale: LANG=C, LC_CTYPE=hu_HU
Versions of packages rrdtool depends on:
ii libc6 2.3.2.ds1-11 GNU C Library: Shared libraries an
ii libgd-gif1 1.3-4 GD Graphics Library with gif suppo
ii libpng12-0 1.2.5.0-5 PNG library - runtime
ii librrd0 1.0.46-3 Time-series data storage and displ
ii zlib1g 1:1.2.1-5 compression library - runtime
-- no debconf information
----- End forwarded message -----
--
- mdz
--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-developers
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-developers
mailing list