Fix case where POE::Wheel::Run CloseEvent doesn't fire on Linux.
authorRocco Caputo <rcaputo@cpan.org>
Thu, 6 Aug 2009 11:21:19 +0000 (07:21 -0400)
committerRocco Caputo <rcaputo@cpan.org>
Thu, 6 Aug 2009 11:21:19 +0000 (07:21 -0400)
commit00ce20ee616b47b5b845790b1ed4a4de39c96b04
treeb786e9660ee5dade773754e35941044e0c7e561e
parent260c0a6cca8181272328d028768715eb049a9361
Fix case where POE::Wheel::Run CloseEvent doesn't fire on Linux.
Thanks to Philip Gwyn's investigation and test cases, we found out
that close() wasn't sufficient to close and destruct slave ptys, so
the parent processes were keeping them open.  Replaced close() with
$io_pty->close_slave() as needed.
poe/lib/POE/Wheel/Run.pm