Skip to content

Commit ab9f93d

Browse files
committed
Add a comment about the fd recv acks.
1 parent 0119b6a commit ab9f93d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/multiprocessing/reduction.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ def recvfds(sock, size):
155155
if not msg and not ancdata:
156156
raise EOFError
157157
try:
158+
# We send/recv an Ack byte after the fds to work around an old
159+
# macOS bug; it isn't clear if this is still required but it
160+
# makes unit testing fd sending easier.
161+
# See: https://github.com/python/cpython/issues/58874
158162
sock.send(b'A') # Acknowledge
159163
if len(ancdata) != 1:
160164
raise RuntimeError('received %d items of ancdata' %

0 commit comments

Comments
 (0)