Subject: | Closing xterm causes CPAN.pm to spin out of control |
To reproduce:
1) Open an xterm and start a CPAN shell session.
2) Close the xterm without leaving the CPAN shell.
On my system (Redhat Linux 7.2, Perl 5.6.1, CPAN 1.63, CPAN::Bundle installed) this causes the Perl process to spin out of control using 100% of the CPU and growing in memory size. At that point only a "kill -9" seems effective.
A workaround is to change the $SIG{TERM} handler to just exit() instead of calling &cleanup. I doubt this is the real solution, but it's working for me.