[debhelper-devel] [debhelper] 01/03: Dh_Lib: inhibit log in child processes
Niels Thykier
nthykier at moszumanska.debian.org
Sun Jun 25 11:56:50 UTC 2017
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository debhelper.
commit b27dba80997f80d84a87b2464e5433e38c51f53e
Author: Niels Thykier <niels at thykier.net>
Date: Sun Jun 25 11:47:10 2017 +0000
Dh_Lib: inhibit log in child processes
Signed-off-by: Niels Thykier <niels at thykier.net>
---
Debian/Debhelper/Dh_Lib.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm
index 4aec5ef..f8bac33 100644
--- a/Debian/Debhelper/Dh_Lib.pm
+++ b/Debian/Debhelper/Dh_Lib.pm
@@ -1667,6 +1667,8 @@ sub on_selected_pkgs_in_parallel {
my @batch = splice(@pkgs, 0, $count_per_proc);
my $pid = fork() // error("fork: $!");
if (not $pid) {
+ # Child processes should not write to the log file
+ inhibit_log();
eval {
$code->(@batch);
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git
More information about the debhelper-devel
mailing list