summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-02-24 20:04:36 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-02-24 20:04:36 +0000
commit4ffa73a366885f682ceccdeee45e43075e0c312e (patch)
tree446e9e27c998f37145504dca4df0241df75e5f90 /perl.c
parent2fb44b4522b8956ab337b2f83a5fe619b0773788 (diff)
downloadperl-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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index 866c9a8826..e603ffc18e 100644
--- a/perl.c
+++ b/perl.c
@@ -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 */