chiark / gitweb /
dgit: Call forkcheck_setup in multisuite children
[dgit.git] / dgit
diff --git a/dgit b/dgit
index a51c8782b928196dff51e8d1ac35f0eefc86d941..f7f2b710b9732ae11b82a0b594b17301e56a26ad 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -3321,6 +3321,7 @@ sub multisuite_suite_child ($$$) {
     my $canonsuitefh = IO::File::new_tmpfile;
     my $pid = fork // die $!;
     if (!$pid) {
+       forkcheck_setup();
        $isuite = $tsuite;
        $us .= " [$isuite]";
        $debugprefix .= " ";
@@ -5663,12 +5664,12 @@ sub cmd_clean () {
 sub build_prep_early () {
     our $build_prep_early_done //= 0;
     return if $build_prep_early_done++;
-    notpushing();
     badusage "-p is not allowed when building" if defined $package;
     my $clogp = parsechangelog();
     $isuite = getfield $clogp, 'Distribution';
     $package = getfield $clogp, 'Source';
     $version = getfield $clogp, 'Version';
+    notpushing();
     check_not_dirty();
 }