EventLoop._do_poll: tweak EINTR handling
authorZac Medico <zmedico@gentoo.org>
Tue, 14 Feb 2012 03:06:29 +0000 (19:06 -0800)
committerZac Medico <zmedico@gentoo.org>
Tue, 14 Feb 2012 03:06:29 +0000 (19:06 -0800)
commitfe3960b69c326bc779bdf5ec34d56630b3e188ae
tree4ab9a0dd4f0503003d3a630b3d8aa7c473db1d7e
parent07823ba56f63309da9547e02e96b043005932be0
EventLoop._do_poll: tweak EINTR handling

Silently handle EINTR, which is normal when we have received a signal
such as SIGINT. Also, raise StopIteration in order to break out of our
current iteration and respond appropriately to the signal as soon as
possible.
pym/portage/util/_eventloop/EventLoop.py