File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ our @CARP_NOT = qw/Test2::API Test2::API::Instance Test2::IPC::Driver Test2::For
88use Carp qw/ confess carp/ ;
99use Scalar::Util qw/ reftype/ ;
1010
11- use Test2::Util qw/ get_tid USE_THREADS CAN_FORK pkg_to_file try CAN_SIGSYS / ;
11+ use Test2::Util qw/ get_tid USE_THREADS CAN_FORK pkg_to_file try/ ;
1212
1313use Test2::EventFacet::Trace();
1414use Test2::API::Stack();
Original file line number Diff line number Diff line change @@ -166,13 +166,12 @@ sub _check_for_sig_sys {
166166 return $sig_list =~ m /\b SYS\b / ;
167167}
168168
169- BEGIN {
170- if (_check_for_sig_sys($Config {sig_name })) {
171- *CAN_SIGSYS = sub () { 1 };
172- }
173- else {
174- *CAN_SIGSYS = sub () { 0 };
169+ my $CAN_SIGSYS ;
170+ sub CAN_SIGSYS () {
171+ if (!defined $CAN_SIGSYS ) {
172+ $CAN_SIGSYS = _check_for_sig_sys($Config {sig_name });
175173 }
174+ $CAN_SIGSYS ;
176175}
177176
178177my %PERLIO_SKIP = (
You can’t perform that action at this time.
0 commit comments