diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-07-23 21:47:57 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-07-23 21:55:07 +0100 |
commit | b0879c98de6356234edf1365c6553a694725d040 (patch) | |
tree | bcc2038b26d6c1c21323778f6d3c50089923e600 /dgit | |
parent | 871cb459862d86e8c572e52a0beca8b5381883f5 (diff) |
dgit: Set $SIG{INT} to DEFAULT
There is a bug in libdpkg-perl, where Dpkg::Source::Package installs a
handler on loading. This has the effect of making in-process C
calls (eg to libcurl) uninterruptible by ^C.
Work around it by unconditionally resetting SIGINT. (Anyone who
deliberately invoked us with SIGINT ignored deserves to keep all the
resulting pieces.)
See #932841.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -54,6 +54,8 @@ use Debian::Dgit; our $our_version = 'UNRELEASED'; ###substituted### our $absurdity = undef; ###substituted### +$SIG{INT} = 'DEFAULT'; # work around #932841 + our @rpushprotovsn_support = qw(6 5 4); # Reverse order! our $protovsn; |