----- Forwarded message from Gabor Gombas <[EMAIL PROTECTED]> -----
Date: Tue, 23 Mar 2004 13:50:49 +0100
From: Gabor Gombas <[EMAIL PROTECTED]>
Resent-From: Gabor Gombas <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]
Help mailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-developers
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi