I would start by executing the sub program in a seperate thread.  That way
the main thread can keep an eye on it and decide if it's run too long and
then do something about it.  Another way to do it is with Win32::Process and
then kill them after some time span.

At 01:35 PM 1/26/2007 -0800, Chris Rodriguez wrote:
>Hello,
>  I have a program that runs other programs (through require statements
and what not).  There's a problem in that some of these  sub-programs may
have infinite loops, which would cause the main  program to hang.  I'd like
the main program to just detect such  and go on to the next one.  How might
I do that?  The alarm  function seemed to be the way to go - but not with
Windows.  Can I  do something with wait and create?  Any other ideas?


--
REMEMBER THE WORLD TRADE CENTER         ---=< WTC 911 >=--
"...ne cede malis"

00000100

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to