[Israel.pm] Problem timing-out a system command when script runs in the background

Mikhael Goikhman migo at homemail.com
Sun Aug 29 03:10:16 PDT 2004


On 29 Aug 2004 13:22:52 -0400, Pinkhas Nisanov wrote:
> 
> On Sunday 29 August 2004 04:31, Yuval Yaari wrote:
> > Sorry if the subject isn't descriptive enough.
> > I wrote a script that extracts archives (zip, tar, gz, bz2, etc)
> > recursivly. I had a problem with zip files that have a password, so I just
> > used the famous alarm trick (read: hack) to time it out.
> 
> set environment variable "PERL_SIGNALS" to "unsafe", e.g.:
> export PERL_SIGNALS=unsafe
> 
> look for "unsafe signals" at perldelta-5.8.1

Thanks for the info. It is nice that they added a way in 5.8.1 to restore
the previous behaviour. 5.8.0 was too new (unicode, IO/signals) and buggy.
Setting PERL_SIGNALS=unsafe solves the problems described in this message:

  http://perl.org.il/pipermail/perl/2003-September/003099.html

Regards,
Mikhael.

-- 
perl -e 'print+chr(64+hex)for+split//,d9b815c07f9b8d1e'



More information about the Perl mailing list