resistance has asked for the wisdom of the Perl Monks concerning the following question:
I test it on Linux and Windows, old and new module version. Before I post the bug I would try to find out the problem.#!/usr/bin/perl use strict; use warnings; use Win32::Exe; $SIG{ALRM} = sub {die "timeout"}; eval{ alarm(1); Win32::Exe->new($ARGV[0]); alarm(0); }; if($@){ if($@ =~/timeout/){die "timeout detected"}; }else{ print "ok, can parse $ARGV[0]\n"; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: method "new" leads to infinite loop with 100% CPU, troubleshooting??
by BrowserUk (Patriarch) on Aug 22, 2008 at 17:59 UTC | |
by resistance (Beadle) on Aug 22, 2008 at 18:44 UTC | |
by resistance (Beadle) on Aug 22, 2008 at 19:07 UTC | |
by BrowserUk (Patriarch) on Aug 22, 2008 at 19:23 UTC | |
by resistance (Beadle) on Aug 22, 2008 at 19:46 UTC | |
|
Re: method "new" leads to infinite loop with 100% CPU, troubleshooting??
by Tanktalus (Canon) on Aug 22, 2008 at 15:09 UTC | |
|
Re: method "new" leads to infinite loop with 100% CPU, troubleshooting??
by BrowserUk (Patriarch) on Aug 22, 2008 at 15:34 UTC |