File: 0001-Raise-instead-of-kill-the-signal.patch

package info (click to toggle)
libdevel-bt-perl 0.06-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 184 kB
  • ctags: 4
  • sloc: perl: 37; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 889 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 7243c7acfa7731697dfd75e930906817588c9c2f Mon Sep 17 00:00:00 2001
From: Leon Timmermans <fawaka@gmail.com>
Date: Mon, 1 Sep 2014 11:53:23 +0200
Subject: [PATCH] Raise instead of kill the signal

Bug-Debian: https://bugs.debian.org/721421
Bug: http://rt.cpan.org/Public/Bug/Display.html?id=93585

---
 t/basic.t | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/basic.t b/t/basic.t
index 4519941..95fbb90 100644
--- a/t/basic.t
+++ b/t/basic.t
@@ -18,7 +18,7 @@ local $ENV{PERL5LIB} = join $Config::Config{path_sep} => @INC;
 for my $signal (@signals) {
     next unless __PACKAGE__->can($signal);
     my $signum = __PACKAGE__->can($signal)->();
-    my @cmd = ($^X, qw(-d:bt -e), "kill $signum, \$\$");
+    my @cmd = ($^X, qw(-d:bt -MPOSIX=raise -e), "raise($signum)");
 
     use Capture::Tiny 'capture';
     my ($stdout) = capture { system @cmd };
-- 
1.9.1