Eval not reseting
- From: Cosmic Cruizer <XXjbhuntxx@xxxxxxxxxxxxxx>
- Date: Fri, 23 Dec 2005 20:03:19 GMT
I'm trying to use the follow eval statement in a sub. The first time
through it works fine, but the second time it fails to timeout. I'm trying
to run it on a Solaris box with Perl v5.6.1. It looks like patch 11510
"eval 'format foo=' would loop indefinitely" has alrady been applied. Any
suggestions? I'm not going to be able to upgrade the version of Perl on
this box.
eval {
sigaction(SIGALRM, POSIX::SigAction->new("main::alrm"));
alarm 10; # Timeout after x seconds
@rpcinfo = `rpcinfo -p $server_address`;
alarm 0;
};
Thanks
.
- Follow-Ups:
- Re: Eval not reseting
- From: Cosmic Cruizer
- Re: Eval not reseting
- From: castillo . bryan
- Re: Eval not reseting
- Prev by Date: Apache and Perl in Windows
- Next by Date: Re: Apache and Perl in Windows
- Previous by thread: Apache and Perl in Windows
- Next by thread: Re: Eval not reseting
- Index(es):
Relevant Pages
|