in reply to Re: Process id in Net::Telnet
in thread Process id in Net::Telnet

STDIN, id from where the script was run. Suppose I do something like $telnet->cmd("Run some program"). the program is running and the user presses ^C on the term where the script was started. I want all telnet sessions to close. Currently the telnet sessions are started inside a subroutine with my $telnet->new.... Suppose the script has 20 telnet sessions started with private my $telnet. In my ^C handling code I want to make sure all these sessions close. I was wondering if I kill the script with ^C will it automatically kill the telnet sessions or will some zombie sessions remain?