summaryrefslogtreecommitdiffstats
path: root/Lib/multiprocessing
Commit message (Collapse)AuthorAgeFilesLines
* bpo-30886: Fix multiprocessing.Queue.join_thread() (#2642) (#2644)Victor Stinner2017-07-101-8/+1
| | | | | | | | | | | multiprocessing.Queue.join_thread() now waits until the thread completes, even if the thread was started by the same process which created the queue. Fix the following warning which occurs randomly when running test_handle_called_with_mp_queue of test_logging.QueueListenerTest: Warning -- threading_cleanup() failed to cleanup -1 threads after 4 sec (count: 0, dangling: 1) (cherry picked from commit 3b69d911c57ef591ac0c0f47a66dbcad8337f33a)
* [3.5] Clear potential ref cycle between Process and Process target (GH-2470) ↵Antoine Pitrou2017-06-281-0/+3
| | | | | | | | | | | (#2472) * Clear potential ref cycle between Process and Process target Besides Process.join() not being called, this was an indirect cause of bpo-30775. The threading module already does this. * Add issue reference. (cherry picked from commit 79d37ae979a65ada0b2ac820279ccc3b1cd41ba6)
* [3.5] bpo-24484: Avoid race condition in multiprocessing cleanup (GH-2159) ↵Antoine Pitrou2017-06-131-13/+21
| | | | | | | | | | | | | (#2167) * bpo-24484: Avoid race condition in multiprocessing cleanup The finalizer registry can be mutated while inspected by multiprocessing at process exit. * Use test.support.start_threads() * Add Misc/NEWS. (cherry picked from commit 1eb6c0074d17f4fd425cacfdda893d65f5f77f0a)
* [3.5] bpo-30414: multiprocessing.Queue._feed do not break from main loop on ↵Antoine Pitrou2017-05-251-12/+10
| | | | | | | | | | | | | | | | | | exc (GH-1683) (#1816) * bpo-30414: multiprocesing.Queue._feed do not break from main loop on exc Queue background running thread was not handling exceptions correctly. Any exception occurred inside thread (putting unpickable object) cause feeder to finish running. After that every message put into queue is silently ignored. * bpo-30414: multiprocesing.Queue._feed do not break from main loop on exc Queue background running thread was not handling exceptions correctly. Any exception occurred inside thread (putting unpickable object) cause feeder to finish running. After that every message put into queue is silently ignored. (cherry picked from commit bc50f03db4f58c869b78e98468e374d7e61f1227)
* bpo-30301: Fix AttributeError when using SimpleQueue.empty() (#1601) (#1627)Xiang Zhang2017-05-171-0/+1
| | | | Under *spawn* and *forkserver* start methods, SimpleQueue.empty() could raise AttributeError due to not setting _poll in __setstate__.
* [3.5] bpo-30185: avoid KeyboardInterrupt tracebacks in forkserver (GH-1319) ↵Antoine Pitrou2017-05-041-6/+14
| | | | | | | | (#1455) * bpo-30185: avoid KeyboardInterrupt tracebacks in forkserver * Tweak comment. (cherry picked from commit 6dd4d734ed207ba16b017e38f8909de7ef187e29)
* [3.5] bpo-30065: Fixed arguments validation in _posixsubprocess.fork_exec(). ↵Serhiy Storchaka2017-04-191-1/+1
| | | | | (GH-1110) (#1190) (cherry picked from commit 66bffd1)
* bpo-28699: fix abnormal behaviour of pools in multiprocessing.pool (GH-884)Xiang Zhang2017-03-291-24/+55
| | | | an exception raised at the very first of an iterable would cause pools behave abnormally (swallow the exception or hang)
* bpo-29861: release references to multiprocessing Pool tasks (#743) (#801)Antoine Pitrou2017-03-241-1/+6
| | | | | | | | | | | | | | | | * bpo-29861: release references to multiprocessing Pool tasks (#743) * bpo-29861: release references to multiprocessing Pool tasks Release references to tasks, their arguments and their results as soon as they are finished, instead of keeping them alive until another task arrives. * Comments in test (cherry picked from commit 8988945cdc27ffa86ba8c624e095b51c459f5154) * Fix Misc/NEWS??
* Issue #28779: multiprocessing.set_forkserver_preload() would crash the ↵Antoine Pitrou2016-12-102-2/+2
| | | | forkserver process if a preloaded module instantiated some multiprocessing objects such as locks.
* Issue #21201: Improves readability of multiprocessing error message from ↵Davin Potts2016-09-081-1/+1
| | | | server to client for certain exceptions
* Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka2016-04-171-1/+1
|
* Issue #25654:Victor Stinner2016-03-253-13/+25
| | | | | | | | | * multiprocessing: open file with closefd=False to avoid ResourceWarning * _test_multiprocessing: open file with O_EXCL to detect bugs in tests (if a previous test forgot to remove TESTFN) * test_sys_exit(): remove TESTFN after each loop iteration Initial patch written by Serhiy Storchaka.
* Fix typo in docstring of multiprocessing.spawn.spawn_main()Berker Peksag2016-01-071-1/+1
|
* Issue #25899: Converted non-ASCII characters in docstrings and manpageSerhiy Storchaka2015-12-181-1/+1
| | | | to ASCII replacements. Original patch by Chris Angelico.
* Issue #21116: Avoid blowing memory when allocating a multiprocessing sharedAntoine Pitrou2015-04-131-1/+8
| | | | | | array that's larger than 50% of the available RAM. Patch by Médéric Boquien.
* Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-102-8/+17
|\ | | | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
| * Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-102-8/+17
| | | | | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
* | Issue #23400: Raise same exception on both Python 2 and 3 if sem_open is not ↵Berker Peksag2015-04-081-1/+2
|\ \ | |/ | | | | | | | | available. Patch by Davin Potts.
| * Issue #23400: Raise same exception on both Python 2 and 3 if sem_open is not ↵Berker Peksag2015-04-081-1/+2
| | | | | | | | | | | | available. Patch by Davin Potts.
* | Issue #23051: multiprocessing.Pool methods imap() and imap_unordered() nowSerhiy Storchaka2015-03-131-14/+23
|\ \ | |/ | | | | | | handle exceptions raised by an iterator. Patch by Alon Diamant and Davin Potts.
| * Issue #23051: multiprocessing.Pool methods imap() and imap_unordered() nowSerhiy Storchaka2015-03-131-14/+23
| | | | | | | | | | handle exceptions raised by an iterator. Patch by Alon Diamant and Davin Potts.
* | Issue #18382: Zero-length messages are consumed by ReadFile on Windows 8 and ↵Steve Dower2015-03-021-2/+11
|\ \ | |/ | | | | later
| * Issue #18382: Zero-length messages are consumed by ReadFile on Windows 8 and ↵Steve Dower2015-03-021-2/+11
| | | | | | | | later
* | Issue #23285: PEP 475 -- Retry system calls failing with EINTR.Charles-François Natali2015-02-073-34/+5
| |
* | Issue #23060: Suppresses a multiprocessing assert that fails incorrectlySteve Dower2014-12-171-1/+3
| | | | | | | | This is to keep buildbots running while we figure out the best long-term fix.
* | Issue #22581: Use more "bytes-like object" throughout the docs and comments.Serhiy Storchaka2014-12-051-1/+1
|\ \ | |/
| * Issue #22581: Use more "bytes-like object" throughout the docs and comments.Serhiy Storchaka2014-12-051-1/+1
| |
* | Simplify code in multiprocessing.Connection.send_bytes().Antoine Pitrou2014-07-311-9/+6
| | | | | | | | Followup to issue #20540; patch by Serhiy.
* | Issue #22033: Reprs of most Python implemened classes now contain actualSerhiy Storchaka2014-07-255-16/+17
| | | | | | | | class name instead of hardcoded one.
* | Issue #21566: Make use of socket.listen() default backlog.Charles-François Natali2014-07-231-1/+1
| |
* | Fixed bugs in reprs of CookieJar and multiprocessing.dummy.Value.Serhiy Storchaka2014-07-221-1/+1
|\ \ | |/
| * Fixed bugs in reprs of CookieJar and multiprocessing.dummy.Value.Serhiy Storchaka2014-07-221-1/+1
| |
* | Issue #21565: multiprocessing: use contex-manager protocol for synchronizationCharles-François Natali2014-05-258-102/+40
|/ | | | primitives.
* do not generate pipe names in the temporary dirBenjamin Peterson2014-04-141-1/+1
|
* Issue #20990: Correction for 619331c67638.Richard Oudkerk2014-03-231-2/+2
|
* Merge 3.3.Richard Oudkerk2014-03-232-2/+2
|\
| * Issue #20633: Replace relative import by absolute import.Richard Oudkerk2014-03-231-1/+1
| |
* | Issue #20980: Stop wrapping exception when using ThreadPool.Richard Oudkerk2014-03-232-6/+17
| |
* | Issue #20990: Fix issues found by pyflakes for multiprocessing.Richard Oudkerk2014-03-232-5/+14
| |
* | Issue #20976: pyflakes: Remove unused importsVictor Stinner2014-03-208-14/+1
| |
* | Issue #20978: pyflakes: fix undefined namesVictor Stinner2014-03-201-1/+1
| |
* | Issue #20540: Fix a performance regression (vs. Python 3.2) when layering a ↵Antoine Pitrou2014-02-081-6/+16
|\ \ | |/ | | | | | | | | multiprocessing Connection over a TCP socket. For small payloads, Nagle's algorithm would introduce idle delays before the entire transmission of a message.
| * Issue #20540: Fix a performance regression (vs. Python 3.2) when layering a ↵Antoine Pitrou2014-02-081-6/+16
| | | | | | | | | | | | multiprocessing Connection over a TCP socket. For small payloads, Nagle's algorithm would introduce idle delays before the entire transmission of a message.
* | Close #19946: use runpy as needed in multiprocessingNick Coghlan2013-12-171-51/+70
| | | | | | | | | | | | - handles main files without a suffix - handles main submodules properly - adds test cases for the various kinds of __main__
* | Issue #19946: Raise ImportError when the main module cannot be foundBrett Cannon2013-12-131-0/+2
| | | | | | | | by multiprocessing.spawn (before it was raising an AttributeError).
* | Implement PEP 451 (ModuleSpec).Eric Snow2013-11-221-6/+5
| |
* | Issue #17276: MD5 as default digestmod for HMAC is deprecated. The HMACChristian Heimes2013-11-201-2/+2
| | | | | | | | module supports digestmod names, e.g. hmac.HMAC('sha1').
* | Merge.Richard Oudkerk2013-11-171-1/+1
|\ \ | |/
| * Fix handling of SystemExit and exit code. Patch by Brodie Rao.Richard Oudkerk2013-11-171-1/+1
| |