[Israel.pm] $SIG{ALRM} and alarm.

Yosef Meller mellerf at netvision.net.il
Thu May 31 12:27:21 EEST 2007


ציטוט Meron Cohen:
> Hi all,
> 
> I'm trying to implement 2 timers in a script. One that timeouts the time
> that the script runs and another one that timeouts the time that a
> command that runs on a card (embedded system). Anyway, for timers I use
> the $SIG{ALRM} and alarm. The problem is that the command "alarm" knows
> how to wait for one timer only (the second alarm destroy the first
> alarm). Do you know I to solve that problem?

On Unix you setitimer (in Time::HiRes)




More information about the Perl mailing list