tags 358717 + patch thanks Martin Michlmayr <[EMAIL PROTECTED]> writes:
> I ran sbuild in a screen session. Since this was in interactive mode,
> sbuild wrote output to stdout and the file. I disattached my screen
> session and left the build running. Later I checked progress by
> looking at the current-unstable file but it didn't get updated very
> often where stdout in the screen did. It seems you're not writing out
> the buffer often enough, at least in interactive mode.
Please could you try the attached patch?
Thanks,
Roger
--
Roger Leigh
Printing on GNU/Linux? http://gutenprint.sourceforge.net/
Debian GNU/Linux http://www.debian.org/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
Index: sbuild
===================================================================
RCS file: /cvsroot/buildd-tools/sbuild/sbuild,v
retrieving revision 1.107
diff -u -r1.107 sbuild
--- sbuild 21 Mar 2006 10:06:49 -0000 1.107
+++ sbuild 27 Mar 2006 10:29:39 -0000
@@ -2599,6 +2599,7 @@
SUFFIX => '.log',
UNLINK => 0)
or die "Can't open logfile: $!\n";
+ $F->autoflush(1);
$main::main_logfile = $F->filename;
if ($main::verbose) {
@@ -2683,6 +2684,8 @@
elsif ($pid == 0) {
open( CPLOG, ">$main::pkg_logfile" ) or
die "Can't open logfile $main::pkg_logfile: $!\n";
+ CPLOG->autoflush(1);
+
while (<STDIN>) {
print CPLOG $_;
print SAVED_STDOUT $_;
pgpIs5Fcql4MS.pgp
Description: PGP signature

