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

[lintian] 01/01: c/lintian: Move some code into main()



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

nthykier pushed a commit to branch master
in repository lintian.

commit 06b89b9366b6df82f2674cae996030863c74cc81
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Dec 3 19:45:10 2016 +0000

    c/lintian: Move some code into main()
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 commands/lintian | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/commands/lintian b/commands/lintian
index fbbd676..ede1bb4 100755
--- a/commands/lintian
+++ b/commands/lintian
@@ -152,14 +152,6 @@ sub timed_task(&);
 
 # {{{ Setup Code
 
-#turn off file buffering
-STDOUT->autoflush;
-binmode(STDOUT, ':utf8');
-
-# Globally ignore SIGPIPE.  We'd rather deal with error returns from write
-# than randomly delivered signals.
-$SIG{PIPE} = 'IGNORE';
-
 sub lintian_version {
     # Version number - Is inserted during build with sed, see d/rules
     my $LINTIAN_VERSION;
@@ -621,6 +613,14 @@ main();
 sub main {
     my ($pool);
 
+    #turn off file buffering
+    STDOUT->autoflush;
+    binmode(STDOUT, ':utf8');
+
+    # Globally ignore SIGPIPE.  We'd rather deal with error returns from write
+    # than randomly delivered signals.
+    $SIG{PIPE} = 'IGNORE';
+
     parse_options();
 
     # Set LINTIAN_ROOT to the actual root.

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


Reply to: