summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiko Tyni <ntyni@iki.fi>2020-01-24 18:57:24 +0100
committergregor herrmann <gregoa@debian.org>2020-01-24 18:57:24 +0100
commitd5c8eab28e23506921ccd4c29e7243b13e05015f (patch)
tree5dbee93e48c08620528122e47d58b95c5a84965a
parent18929fe027b34b9d82549878e697cdd778bf65aa (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;