[Lula] Perl and Sleep problem

Samuel Gasster muondude at yahoo.com
Mon Apr 14 23:21:19 EDT 2008


I have been asked to help debug a Perl script problem - but it may be in fact an OS problem.

Unfortunately I cannot post the code, but here's the problem...

The Perl script is suppose to read some telemetry data (yes from a rocket ;-)), and check some parameters.
The script reads the telemetry ok, but then wants to wait for some many seconds (2 - 6 sec) and then
check again after the telemetry has had time to update.  So the programmer inserted a the Perl "sleep"
function with the argument being the number of seconds to sleep.

The problem is that sometime one of the sleep functions work they seem to get ignored.

The script is run under WinXP, Active State Perl 5.8.0.

My suspicion is that this is really a problem at the OS level and when the Perl sleep is called,
it calls the system level sleep (c-lib sleep?) and something is block or preventing that command
at the OS level from being executed.  Since the OS is WinXP I don't know how to check (if it was linux
I'd try strace).

Has anyone seen this behavior before - sleep function being ignored?

TIA.

Sorry I can't post the code.

 
-- Sam
--------------------------
Samuel Gasster
muondude AT yahoo.com
--------------------------




      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


More information about the Lula mailing list