(instance)
| 255 | |
| 256 | if not hasattr(os, 'register_at_fork'): # Windows and friends. |
| 257 | def _register_at_fork_reinit_lock(instance): |
| 258 | pass # no-op when os.register_at_fork does not exist. |
| 259 | else: |
| 260 | # A collection of instances with a _at_fork_reinit method (logging.Handler) |
| 261 | # to be called in the child after forking. The weakref avoids us keeping |