summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiko Tyni <ntyni@iki.fi>2024-03-07 18:31:41 +0100
committergregor herrmann <gregoa@debian.org>2024-03-07 18:31:41 +0100
commit5df89cb866addae097dda4862463768a6ded3dd5 (patch)
tree7dec3f09b9ee32ffd2ac13370d91d123dc5e5033
parent4e5cb4f683f5fad5575d6513d6e4d91760b4cc2e (diff)
sbuild_sighup
Some automatic building tools (sbuild) set $SIG{HUP} = 'IGNORE'. Temporarily override that. Gbp-Pq: Name sbuild_sighup.patch
-rwxr-xr-xt/sleep_exit.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/sleep_exit.pl b/t/sleep_exit.pl
index 1e06536..b1f5d90 100755
--- a/t/sleep_exit.pl
+++ b/t/sleep_exit.pl
@@ -2,6 +2,11 @@ use strict;
$| = 1;
+# Debian-specific modification: some automatic building tools
+# (sbuild) set $SIG{HUP} = 'IGNORE'. Temporarily override that.
+
+local $SIG{HUP} = 'DEFAULT';
+
my ($sleep, $exit_status) = @ARGV;
$sleep = 1 unless defined $sleep;
$exit_status = 0 unless defined $exit_status;