Re: [PATCH] dpkg-buildpackage: print message on signal

Simon Richter <[email protected]>
Newsgroups gmane.linux.debian.devel.dpkg.general
Message-ID <[email protected]>
Hi,

On 12/13/24 19:22, [email protected] 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.