<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/multiprocessing, branch 3.8</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/multiprocessing?h=3.8</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/multiprocessing?h=3.8'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2020-08-30T19:42:27Z</updated>
<entry>
<title>bpo-41344: Raise ValueError when creating shared memory of size 0 (GH-21556) (GH-22019)</title>
<updated>2020-08-30T19:42:27Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-08-30T19:42:27Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=38e32872eb3cf0dc9dd8cef9b05e47ba03638d34'/>
<id>urn:sha1:38e32872eb3cf0dc9dd8cef9b05e47ba03638d34</id>
<content type='text'>
(cherry picked from commit 475a5fbb5644ea200c990d85d8c264e78ab6c7ea)

Co-authored-by: Vinay Sharma &lt;vinay04sharma@icloud.com&gt;

Co-authored-by: Vinay Sharma &lt;vinay04sharma@icloud.com&gt;</content>
</entry>
<entry>
<title>Fix typo in message from assert statement (GH-21283)</title>
<updated>2020-08-17T15:32:11Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-08-17T15:32:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2bcd0fe7a5d1a3c3dd99e7e067239a514a780402'/>
<id>urn:sha1:2bcd0fe7a5d1a3c3dd99e7e067239a514a780402</id>
<content type='text'>
The error message was missing space between the action "acquire" and "_wait_semaphore" which is an attribute for instances of Condition.
(cherry picked from commit 99c0ee3c893bb99fd98a97084fc386ce2911eb64)

Co-authored-by: Allen &lt;64019758+aboddie@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>bpo-39244: multiprocessing return default start method first on macOS (GH-18625)</title>
<updated>2020-05-26T15:13:59Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-05-26T15:13:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=285ff63351bb5a42099527c283f65434e761be83'/>
<id>urn:sha1:285ff63351bb5a42099527c283f65434e761be83</id>
<content type='text'>
(cherry picked from commit db098bc1f05bd0773943e59f83489f05f28dedf8)

Co-authored-by: idomic &lt;michael.ido@gmail.com&gt;</content>
</entry>
<entry>
<title>[3.8] bpo-40330: Fix utf-8 size check in ShareableList (GH-19606) (GH-19625)</title>
<updated>2020-04-20T19:22:50Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>antoine@python.org</email>
</author>
<published>2020-04-20T19:22:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=887ff8e37e238fbce18c647e588283904f38ab24'/>
<id>urn:sha1:887ff8e37e238fbce18c647e588283904f38ab24</id>
<content type='text'>
The item size must be checked after encoding to bytes, not before.

Automerge-Triggered-By: @pitrou.
(cherry picked from commit eba9f6155df59c9beed97fb5764c9f01dd941af0)

Co-authored-by: Antoine Pitrou &lt;antoine@python.org&gt;</content>
</entry>
<entry>
<title>Fix two typos in multiprocessing (GH-19571) (GH-19578)</title>
<updated>2020-04-18T07:24:15Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-04-18T07:24:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=904dd068fb6dc9a70f30dc46061e8b57d7797119'/>
<id>urn:sha1:904dd068fb6dc9a70f30dc46061e8b57d7797119</id>
<content type='text'>
(cherry picked from commit c606624af8d4cb3b4a052fb263bb983b3f87585b)

Co-authored-by: Galden &lt;wudenggang0@163.com&gt;

Co-authored-by: Galden &lt;wudenggang0@163.com&gt;</content>
</entry>
<entry>
<title>bpo-39360: Ensure all workers exit when finalizing a multiprocessing Pool (GH-19009)</title>
<updated>2020-03-15T21:26:43Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-03-15T21:26:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7f5302fed4ff0cc8042e639b29a0664a16bc2702'/>
<id>urn:sha1:7f5302fed4ff0cc8042e639b29a0664a16bc2702</id>
<content type='text'>
When the pull is not used via the context manager or terminate() is called, there is a system in multiprocessing.util that handles finalization of all pools via an atexit handler (the Finalize) class. This class registers the _terminate_pool handler in the registry of finalizers of the module, and that registry is called on interpreter exit via _exit_function. The problem is that the "happy" path with the context manager or manual call to finalize() does some extra steps that _terminate_pool does not. The step that is not executed when the atexit() handler calls _terminate_pool is pinging the _change_notifier queue to unblock the maintenance threads.

This commit moves the notification to the _terminate_pool function so is called from both code paths.

Co-authored-by: Pablo Galindo &lt;Pablogsal@gmail.com&gt;
(cherry picked from commit ac10e0c93218627d1a639db0b7b41714c5f6a883)

Co-authored-by: Batuhan Taşkaya &lt;47358913+isidentical@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>[3.8] bpo-39850: Add support for abstract sockets in multiprocessing (GH-18866) (GH-18876)</title>
<updated>2020-03-09T14:48:03Z</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2020-03-09T14:48:03Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3ede1bc794a575a73c6cc74addb5586f4e33a1f5'/>
<id>urn:sha1:3ede1bc794a575a73c6cc74addb5586f4e33a1f5</id>
<content type='text'>
(cherry picked from commit 6012f30beff7fa8396718dfb198ccafc333c565b)</content>
</entry>
<entry>
<title>bpo-39439: Fix multiprocessing spawn path in a venv on Windows (GH-18158)</title>
<updated>2020-01-28T10:52:47Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-01-28T10:52:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dbb37aac1428ddcba784d9ddc77c1708c391aa80'/>
<id>urn:sha1:dbb37aac1428ddcba784d9ddc77c1708c391aa80</id>
<content type='text'>
(cherry picked from commit 0be3246d4f9c8eddcd55491901d95b09fe163f15)

Co-authored-by: Adam Meily &lt;ameily@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>bpo-38546: multiprocessing tests stop the resource tracker (GH-17641) (GH-17647)</title>
<updated>2019-12-18T09:11:05Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2019-12-18T09:11:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=35acb3597208e10a101140474adec86859d57f61'/>
<id>urn:sha1:35acb3597208e10a101140474adec86859d57f61</id>
<content type='text'>
Multiprocessing and concurrent.futures tests now stop the resource
tracker process when tests complete.

Add ResourceTracker._stop() method to
multiprocessing.resource_tracker.

Add _cleanup_tests() helper function to multiprocessing.util: share
code between multiprocessing and concurrent.futures tests.

(cherry picked from commit 9707e8e22d80ca97bf7a9812816701cecde6d226)</content>
</entry>
<entry>
<title>bpo-38707: Fix for multiprocessing.Process MainThread.native_id (GH-17088)</title>
<updated>2019-11-19T20:11:20Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-11-19T20:11:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=829593a9262e67c72167c6cb20d383203b2ea410'/>
<id>urn:sha1:829593a9262e67c72167c6cb20d383203b2ea410</id>
<content type='text'>
This PR implements a fix for `multiprocessing.Process` objects; the error occurs when Processes are created using either `fork` or `forkserver` as the `start_method`.

In these instances, the `MainThread` of the newly created `Process` object retains all attributes from its parent's `MainThread` object, including the `native_id` attribute. The resulting behavior is such that the new process' `MainThread` captures an incorrect/outdated `native_id` (the parent's instead of its own).

This change forces the Process object to update its `native_id` attribute during the bootstrap process.

cc @vstinner

https://bugs.python.org/issue38707

Automerge-Triggered-By: @pitrou
(cherry picked from commit c6b20be85c0de6f2355c67ae6e7e578941275cc0)

Co-authored-by: Jake Tesler &lt;jake.tesler@gmail.com&gt;</content>
</entry>
</feed>
