[lintian] 02/02: Make lintian ack the signal over the status-log
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 9e3b8a0a14a90ea76619deaec535addbdbc8c4a8
Author: Niels Thykier <niels@thykier.net>
Date: Sat Oct 28 08:37:22 2017 +0000
Make lintian ack the signal over the status-log
That way r-lintian-harness can see that the signal is received and
will eventaully cause termination.
Signed-off-by: Niels Thykier <niels@thykier.net>
---
commands/lintian.pm | 1 +
commands/reporting-lintian-harness.pm | 5 +++++
2 files changed, 6 insertions(+)
diff --git a/commands/lintian.pm b/commands/lintian.pm
index 58a570f..ce4f47a 100755
--- a/commands/lintian.pm
+++ b/commands/lintian.pm
@@ -1801,6 +1801,7 @@ sub retrigger_signal {
sub interrupted {
$received_signal = $_[0];
$SIG{$received_signal} = 'DEFAULT';
+ print {$STATUS_FD} "ack-signal SIG${received_signal}\n";
return _die_in_signal_handler();
}
diff --git a/commands/reporting-lintian-harness.pm b/commands/reporting-lintian-harness.pm
index d1dff04..fc76850 100644
--- a/commands/reporting-lintian-harness.pm
+++ b/commands/reporting-lintian-harness.pm
@@ -345,6 +345,11 @@ sub process_worklist {
log_msg(" [lintian] error processing $group_id "
. "(time: $runtime)");
$processed{$group_id} = 1;
+ } elsif ($line =~ m/^ack-signal (SIG\S+)$/) {
+ my $signal = $1;
+ log_msg(
+ "Signal $signal acknowledged: disabled timed alarms");
+ alarm(0);
}
}
alarm(0);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: