File: sbuild_sighup.patch

package info (click to toggle)
libproc-background-perl 1.10-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 188 kB
  • sloc: perl: 329; makefile: 8
file content (18 lines) | stat: -rw-r--r-- 498 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Author: Niko Tyni <ntyni@iki.fi>

Some automatic building tools (sbuild) set $SIG{HUP} = 'IGNORE'.
Temporarily override that.
--- 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;