in reply to Re^2: Alarm and Telnet issues
in thread Alarm and Telnet issues

Well, no lightweight trivial way.
use POSIX (); $SIG{USR1} = sub { ... }; unless(fork) { sleep(4); kill(POSIX::SIGUSR1(), getppid()); exit; }