[Chicago-talk] Getting a thread to end

Komtanoo Pinpimai komtanoo at gmail.com
Sun Sep 12 16:21:04 CDT 2004

> What I'd like to happen is when "run.pl" ends or is CTRL-C'd I'd like
> the $tws->disconnect to be called so that things get wrapped up
> correctly.
> Thanks
> Jay

Catch $SIG{INT} interrupt for CTRL-C inorder to call your disconnect functions ?

More information about the Chicago-talk mailing list