[rt.cpan.org 87721] Clear $! in Driver::SysRW::flush().
authorNicko Dehaine <nicko@phone.com>
Mon, 19 Aug 2013 04:03:29 +0000 (00:03 -0400)
committerRocco Caputo <rcaputo@cpan.org>
Mon, 19 Aug 2013 04:03:29 +0000 (00:03 -0400)
commitf42a26db921db2bbbb951a1becd02800d8ceb2d2
treeb6591fc119d1c534bb3b1d3308ec93cc58ffbde4
parent4e7961d6370cef5741d4ac2f9023fb7e2dad309d
[rt.cpan.org 87721] Clear $! in Driver::SysRW::flush().

Nothing prevents the user from calling flush() when there is nothing
to flush.  In these cases, $! remained unchanged, which could lead to
detection of false error conditions.  This change clears $! to avoid
the problem.
lib/POE/Driver/SysRW.pm