Subject: | Reactor select return value is misinterpreted [Patch attached] |
Date: | Thu, 2 May 2013 12:57:01 +0100 |
To: | bug-Net-DBus [...] rt.cpan.org |
From: | Philip Boulain <philip.boulain [...] smoothwall.net> |
select() will return -1 on signal interruptions, but the check in Reactor's
step() will misinterpret this as some of the fds being ready, and will then
proceed to read invalid fd vector state. This can lead to misfiring
callbacks.
Trivial Debian-style quilt patch attached.
--
Dr. Philip Boulain
Developer
philip.boulain@smoothwall.net
Smoothwall Ltd
Phone: +44 (0) 8701 999500
www.smoothwall.net
Smoothwall Limited is registered in England, Company Number: 4298247 and
whose registered address is 1 John Charles Way, Leeds, LS12 6QA United
Kingdom
Any opinions stated in this message are solely those of the author.
Message body is not shown because sender requested not to inline it.