What happens if you pcap_close($pcap) in the alarm handler?
In reply to Re: Net::Pcap Filters and alarm() by oiskuu in thread Net::Pcap Filters and alarm() [SOLVED] by return0