[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 06/06: r/harness: Tweak some log flushing/blocking



This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository lintian.

commit 5131bb9ef2b85391b94b94347d8c16088aa784d0
Author: Niels Thykier <niels@thykier.net>
Date:   Tue Feb 10 17:47:55 2015 +0100

    r/harness: Tweak some log flushing/blocking
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 reporting/harness | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/reporting/harness b/reporting/harness
index 41cfa60..28f4ed9 100755
--- a/reporting/harness
+++ b/reporting/harness
@@ -159,6 +159,7 @@ unless ($opt{'dry-run'}) {
     # create new log file
     open($LOG_FD, '>', $log_file)
       or die "cannot open log file $log_file for writing: $!";
+    $LOG_FD->autoflush;
 } else {
     $opt{'to-stdout'} = 0;
     open($LOG_FD, '>&', \*STDOUT)
@@ -273,7 +274,6 @@ if (not $opt{'reports-only'}) {
         spawn(\%harness_lintian_opts,
             [$dplint_cmd, 'reporting-lintian-harness', @lintian_harness_args]);
         my $child_out = $harness_lintian_opts{'pipe_out'};
-        $child_out->blocking(1);
         while (my $line = <$child_out>) {
             chomp($line);
             Log_no_ts($line);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: