issue #490: have Side._on_fork() empty _fork_refs

This is mostly to avoid ugly debugging that depends on the state of GC.
Discard sides from _fork_refs after they have been closed.
issue510
David Wilson 6 years ago
parent 38a553d42d
commit 7dae88f0f5

@ -1415,7 +1415,9 @@ class Side(object):
@classmethod
def _on_fork(cls):
for side in list(cls._fork_refs.values()):
while cls._fork_refs:
_, side = cls._fork_refs.popitem()
_vv and IOLOG.debug('Side._on_fork() closing %r', side)
side.close()
def close(self):

Loading…
Cancel
Save