[pypy-commit] pypy stm-gc: Complete the comment.

arigo noreply at buildbot.pypy.org
Tue Apr 17 10:31:41 CEST 2012

Author: Armin Rigo <arigo at tunes.org>
Branch: stm-gc
Changeset: r54450:df717693c947
Date: 2012-04-17 10:30 +0200

Log:	Complete the comment.

diff --git a/lib_pypy/transaction.py b/lib_pypy/transaction.py
--- a/lib_pypy/transaction.py
+++ b/lib_pypy/transaction.py
@@ -74,6 +74,10 @@
 def remove_epoll(ep):
     """Explicitly unregister the epoll object.  Note that raising an
     exception in a transaction to abort run() also unregisters all epolls.
+    However, an epoll that becomes empty (doesn't wait on any fd) is not
+    automatically removed; if there is only an empty epoll left and no
+    further transactions, and no-one raised an exception, then it will
+    basically deadlock.
     for key, (f, args, kwds) in _pending.items():
         if getattr(f, '_reads_from_epoll_', None) is ep:

More information about the pypy-commit mailing list