develooper Front page | perl.perl5.porters | Postings from February 2003

Re: [PATCH] $SIG::UNSAFE

Thread Previous | Thread Next
From:
Slaven Rezic
Date:
February 24, 2003 12:08
Subject:
Re: [PATCH] $SIG::UNSAFE
Message ID:
874r6tv64y.fsf@vran.herceg.de
Jarkko Hietaniemi <jhi@iki.fi> writes:

> After some private heated (from my side) and reasoned (from Sarathy's
> side) discussion :-) I think we should not try to solve the syntactic
> backward- and forward-compatibility for this feature for Perl 5.8.1.
> 
> Instead, let us go for an environment variable: $ENV{PERL_SIGNALS},
> and "unsafe" will enable the pre-5.8.0 behaviour.
> 
> Anybody proposing some other variable name or syntax better be called
> Sarathy or I am very likely ignore the suggestion :-)
> 
> No per-signal syntax, either.  See previous paragraph.
> 

Here's a suggestion. It works best if PERL_SIGNALS is renamed to
PERL_UNSAFE_ISGNALS:

To set all signals to pre-5.8.0 behavior use the ALL value (or
__ALL__, if there are systems where ALL is a valid signal name, or
another alternative would be "1"):

	PERL_UNSAFE_SIGNALS=ALL

For a restricted list of signals use a space separated value:

	PERL_UNSAFE_SIGNALS="USR1 ALRM" 

Regards,
	Slaven

-- 
Slaven Rezic - slaven@rezic.de

    tksm - Perl/Tk program for searching and replacing in multiple files
    http://ptktools.sourceforge.net/#tksm

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About