Message209751
_run_once() can be called more than expected if selector.select() was interrupted by a signal or because the granularity is wrong. If we want to avoid that, a simple fix is just to loop again in this case. Attached patch implements that (I wrote it for Tulip, it cannot applied cleanly on Python because I added debug code to investigate this issue).
The patch should also fix the sporadic issue of signal interrupting _run_once(). The unit test should not be interrupted by a signal, but it can occur on a real application. For example when your resize a terminal. |
|
Date |
User |
Action |
Args |
2014-01-31 08:49:34 | vstinner | set | recipients:
+ vstinner, gvanrossum, python-dev |
2014-01-31 08:49:34 | vstinner | set | messageid: <1391158174.45.0.949451536816.issue20452@psf.upfronthosting.co.za> |
2014-01-31 08:49:34 | vstinner | link | issue20452 messages |
2014-01-31 08:49:33 | vstinner | create | |
|