in reply to Re^2: Alarm and Telnet issuesin thread Alarm and Telnet issues
use POSIX (); $SIG{USR1} = sub { ... }; unless(fork) { sleep(4); kill(POSIX::SIGUSR1(), getppid()); exit; } [download]