Bug#554945: Autoflushing of stdout is broken with perl 5.10

Roger Leigh rleigh at codelibre.net
Sat Sep 7 19:18:09 UTC 2013


On Sat, Sep 07, 2013 at 06:43:12PM +0100, Dominic Hargreaves wrote:
> Do you find that this is still an issue for you with current versions
> of perl? With the lack of a reproducible test case there's not much
> we can do about this report, so I would like to either get some more
> information about the issue, or close the report.

--- a/lib/Sbuild/Build.pm
+++ b/lib/Sbuild/Build.pm
@@ -2120,7 +2120,7 @@ sub open_build_log {
                }
 
                # Manual flushing due to Perl 5.10 bug.  Should autoflush.
-               $saved_stdout->flush();
+               #$saved_stdout->flush();
            }
            if (!$nolog && $log) {
                    print CPLOG $_;

In sbuild I was working around it by explicitly flushing the output
stream.  I've tested by commenting out the explicit flushing and doing
a few builds.  Output does not appear to be unduly buffered, so it's
possible that this issue has been resolved somehow.  However, the
perl code has changed slightly in the meantime, and I'm now using a
newer system, so it's possible that isn't simply not manifesting with
the setup I have.  There's certainly no lag/choppiness in the live
build output.

In the absence of being able to reproduce with the code which previously
demonstrated the problem, I'd say this could be closed.  If anyone can
properly reproduce it, it can be reopened.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/perl-maintainers/attachments/20130907/39506a7a/attachment.sig>


More information about the Perl-maintainers mailing list