Think about Loose Coupling | |
PerlMonks |
Re: alarm() on windows 2003, overviewby syphilis (Archbishop) |
on Feb 01, 2006 at 12:20 UTC ( [id://527040]=note: print w/replies, xml ) | Need Help?? |
Just a minor nitpick - I think it's a little rash to assert that "it works fine (5.8.3 in Windows 2000) here". The alarm() documentation states that "Each call disables the previous timer, and an argument of 0 may be supplied to cancel the previous timer without starting a new one. The returned value is the amount of time remaining on the previous timer". I've never been able to get a return value of anything other than '0' on Windows 2000 - though I agree that, as a timeout mechanism, it can work fine. (Of course, if you're finding that alarm() is fully functional, then it's me that's being a "little rash" :-) One other thought is that you might get better mileage from Win32::Process's Kill() method. Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|