I've noticed that my gethostbyaddr is not being aborted after 2 seconds. I'm certain it is something obvious.. Anyone see the problem?
perplexed Jason
eval { local $SIG{ALRM} = sub { die "alarm clock restart" }; alarm 2; # schedule alarm for every 2 seconds eval { print "server1 $my_ipaddr\n"; $SybaseInterfaces::lookup_iptoname{$my_ipaddr} = getho +stbyaddr(inet_aton($my_ipaddr), AF_INET); print "server2\n"; }; alarm 0; print "server3\n"; }; print "server4\n"; alarm 0; die if $@ && $@ !~ /alarm clock restart/; #reraise }
In reply to SIGALRM and gethostbyaddr by jfroebe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |