Re: [PATCH] dpkg-buildpackage: print message on signal
Hi,
On 12/13/24 19:22, jspricke@debian.org wrote:
+use sigtrap 'handler' => \&sig_handler, 'normal-signals';
This only handles HUP, INT, PIPE, TERM -- signals that I would expect do
not indicate a problem in the package itself in most of the cases, and
that I *do* want to abort the package build for (like the user pressing
Ctrl-C).
Things like SEGV, BUS, FPE are probably more along the line of "unexpected."
+sub sig_handler {
+ my $sig_name = shift;
+ print g_("$0 was killed by signal $sig_name.\n");
+ print g_("This is probably a bug in the package.\n");
+}
That handler does not terminate dpkg-buildpackage, and does not stop the
build. For some signals, I believe it should.
Simon
Reply to: