diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-02-24 20:04:36 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-02-24 20:04:36 +0000 |
commit | 4ffa73a366885f682ceccdeee45e43075e0c312e (patch) | |
tree | 446e9e27c998f37145504dca4df0241df75e5f90 /perl.c | |
parent | 2fb44b4522b8956ab337b2f83a5fe619b0773788 (diff) | |
download | perl-4ffa73a366885f682ceccdeee45e43075e0c312e.tar.gz |
PERL_SIGNALS=unsafe enables the old unsafe/immediate signals.
p4raw-id: //depot/perl@18766
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1394,6 +1394,15 @@ print \" \\@INC:\\n @INC\\n\";"); } } + if ((s = PerlEnv_getenv("PERL_SIGNALS"))) { + if (strEQ(s, "unsafe")) + PL_signals |= PERL_SIGNALS_UNSAFE_FLAG; + else if (strEQ(s, "safe")) + PL_signals &= ~PERL_SIGNALS_UNSAFE_FLAG; + else + Perl_croak(aTHX_ "PERL_SIGNALS illegal: \"%s\"", s); + } + init_lexer(); /* now parse the script */ |