New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Perl 5.14 does not allow "internal" setting of $ENV{'PERL_SIGNALS'} #11414
Comments
From spectre@floodgap.comA common idiom, at least in my code, is to have the script itself set Although the argument could be made that this was not designed to be set at http://cpansearch.perl.org/src/RGARCIA/Perl-Unsafe-Signals-0.02/Signals.xs I have not evaluated this module specifically with 5.14, but its use does A quick scan through mg.c does not show anywhere that PL_signals is exposed, I would like to request the old behaviour be reinstated for backward Thanks for your consideration. % perl514 -v This is perl 5, version 14, subversion 0 (v5.14.0) built for darwin-2level Copyright 1987-2011, Larry Wall % perl514 -V Characteristics of this binary (from libperl): -- |
From @LeontOn Sun, Jun 5, 2011 at 6:50 PM, Cameron Kaiser
Exactly. I'd personally call this a fix, not a bug.
Is there any reason you can't use Perl::Unsafe::Signals instead? For
I'd prefer a different solution to this. You can trivially write a package Perl::Unsafe::Signals::Global; Leon |
The RT System itself - Status changed from 'new' to 'open' |
From spectre@floodgap.com
I imagine you would not consider this a good reason, but I specifically Rather than explain the whole of why I use unsafe signals, let me simply -- |
From @LeontOn Wed, Jun 15, 2011 at 6:23 AM, Cameron Kaiser <spectre@floodgap.com> wrote:
Another possibility that doesn't require non-core modules is using Leon |
From spectre@floodgap.com
I agree that would indeed be fine if the Perl standard library were present. -- |
From @LeontOn Thu, Jun 16, 2011 at 3:25 PM, Cameron Kaiser <spectre@floodgap.com> wrote:
If you're in control of the perl binary you could patch it to use Leon [1]: http://search.cpan.org/perldoc?staticperl |
From @Leontunsafe.patchdiff --git a/perl.c b/perl.c
index 417b2fd..2e0bda9 100644
--- a/perl.c
+++ b/perl.c
@@ -2166,6 +2166,9 @@ S_parse_body(pTHX_ char **env, XSINIT_t xsinit)
else
Perl_croak(aTHX_ "PERL_SIGNALS illegal: \"%s\"", s);
}
+ else {
+ PL_signals |= PERL_SIGNALS_UNSAFE_FLAG;
+ }
}
#ifdef PERL_MAD
|
From @cpansproutOn Sun Jun 05 09:50:25 2011, spectre@floodgap.com wrote:
Looking at the signal-handling code in 5.12, I cannot see how this ever |
From @jkeenanOn Fri Aug 26 22:57:53 2011, sprout wrote:
The OP has not responded to Father C.'s question in more than two years. Is there any reason we should keep this ticket open? Thank you very much. |
From @LeontOn Sat, Sep 7, 2013 at 4:49 AM, Cameron Kaiser <spectre@floodgap.com> wrote:
I can imagine running in such issues when using a XS module that don't So yes, I would be most interested in a *short* example of this problem,
I don't think the old behavior should be restored, but one could argue the Leon |
From spectre@floodgap.com
This related to Term::ReadLine::TTYtter, which is an altered version of
As politely as I can put it, no expectation was made that you would. That said,
Would this be acceptable? It would seem more generally useful than the current -- |
Migrated from rt.perl.org#92246 (status was 'open')
Searchable as RT92246$
The text was updated successfully, but these errors were encountered: