From 7763549653d556768a8d0b08ef6fb33ae2b6ad1e Mon Sep 17 00:00:00 2001 From: David Wilson Date: Mon, 18 Feb 2019 18:24:03 +0000 Subject: [PATCH] os_fork: more doc tweaks --- mitogen/os_fork.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mitogen/os_fork.py b/mitogen/os_fork.py index 02162ea8..e318e79d 100644 --- a/mitogen/os_fork.py +++ b/mitogen/os_fork.py @@ -88,8 +88,8 @@ class Corker(object): unrecoverably snapshotted in the locked state in the fork child, causing deadlocks at random future moments. - To ensure a target thread has all locks dropped, we ask it to write a large - string to a socket with a small buffer that has :data:`os.O_NONBLOCK` + To ensure a target thread has all locks dropped, it is made to write a + large string to a socket with a small buffer that has :data:`os.O_NONBLOCK` disabled. CPython will drop the GIL and enter the ``write()`` system call, where it will block until the socket buffer is drained, or the write side is closed.