Richard Oudkerk
409c31390f
Issue #17555 : Fix ForkAwareThreadLock so that size of after fork
...
registry does not grow exponentially with generation of process.
2013-04-17 20:58:00 +01:00
Giampaolo Rodola'
b38897fc91
Fix issue #17707 : multiprocessing.Queue's get() method does not block for short timeouts.
2013-04-17 13:08:59 +02:00
Richard Oudkerk
5b8a3242c4
Merge
2013-02-26 13:00:15 +00:00
Richard Oudkerk
7aaa1ef858
Issue #17018 : Make Process.join() retry if os.waitpid() fails with EINTR.
2013-02-26 12:39:57 +00:00
Giampaolo Rodola'
67da89446a
fix for previous commit related to issue 10527 which didn't have the intended effect as per http://bugs.python.org/issue10527#msg179895
2013-01-14 02:24:25 +01:00
Richard Oudkerk
ed9e06cb21
Issue #16955 : Fix the poll() method for multiprocessing's socket
...
connections on Windows.
2013-01-13 22:46:48 +00:00
Giampaolo Rodola'
5051ca887c
Fix issue 10527: make multiprocessing use poll() instead of select() if available.
2012-12-31 17:38:17 +01:00
Giampaolo Rodola'
5e844c8052
Fix issue 10527: make multiprocessing use poll() instead of select() if available.
2012-12-31 17:23:09 +01:00
Hynek Schlawack
254af2644a
#16307 : Fix multiprocessing.Pool.map_async not calling its callbacks
...
Patch by Janne Karila.
2012-10-27 12:53:02 +02:00
Benjamin Peterson
3095f4724e
raise a ValueError instead of an AssertionError when pool is an invalid state
2012-09-25 12:45:42 -04:00
Richard Oudkerk
04ec8ce1bb
Issue #14669 : Fix pickling of connections and sockets on MacOSX
...
by sending/receiving an acknowledgment after file descriptor transfer.
TestPicklingConnection has been reenabled for MacOSX.
2012-08-16 16:48:55 +01:00
Richard Oudkerk
3165a75e45
Merge 3.2
2012-08-14 12:51:14 +01:00
Richard Oudkerk
e88a2445bc
Issue #15646 : Prevent equivalent of a fork bomb when using multiprocessing
...
on Windows without the "if __name__ == '__main__'" idiom.
2012-08-14 11:41:32 +01:00
Richard Oudkerk
b15e622bb8
Issue #6056 : Make multiprocessing use setblocking(True) on the sockets it uses.
...
Original patch by J Derek Wilson.
2012-07-27 14:19:00 +01:00
Richard Oudkerk
4887b1c0e7
Issue #6056 : Make multiprocessing use setblocking(True) on the sockets it uses.
...
Original patch by J Derek Wilson.
2012-07-27 14:06:11 +01:00
Richard Oudkerk
ac38571f00
Issue #15064 : Make BaseManager.__enter__() start server if necessary.
2012-06-18 21:29:30 +01:00
Richard Oudkerk
d69cfe88ea
Issue #15064 : Implement context manager protocol for multiprocessing types
2012-06-18 17:47:52 +01:00
Richard Oudkerk
1375884891
Fiddle with timeouts in barrier tests
2012-06-18 14:11:10 +01:00
Richard Oudkerk
9125775aa6
Fix _TestListener.ALLOWED_TYPES and add sanity check
2012-06-15 21:53:34 +01:00
Richard Oudkerk
3049f1243e
Increase timeout used when waiting for manager to shutdown cleanly
...
before resorting to terminate()
2012-06-15 20:08:29 +01:00
Richard Oudkerk
0f52346e76
Fix for 2d2f206d040e so that test_multiprocessing does not depend on ctypes
2012-06-15 19:18:30 +01:00
Richard Oudkerk
3730a17a58
Issue #14059 : Implement multiprocessing.Barrier
2012-06-15 18:26:07 +01:00
Richard Oudkerk
73d9a292ae
Issue #13841 : Make child processes exit using sys.exit() on Windows
2012-06-14 15:30:10 +01:00
Richard Oudkerk
58ba47f97b
Merge fixes for #13854 and #12157 .
2012-06-07 20:38:11 +01:00
Richard Oudkerk
29471de459
Issue #13854 : Properly handle non-integer, non-string arg to SystemExit
...
Previously multiprocessing only expected int or str. It also wrongly
used an exit code of 1 when the argument was a string instead of zero.
2012-06-06 19:04:57 +01:00
Richard Oudkerk
e41682b994
Issue #12157 : pool.map() does not handle empty iterable correctly
...
Initial patch by mouad
2012-06-06 19:04:57 +01:00
Richard Oudkerk
9844993cde
Add test for multiprocessing.Conditon.wait() and changset 3baeb5e13dd2
2012-06-05 13:15:29 +01:00
Richard Oudkerk
77c84f2def
#12098 : Make multiprocessing's child processes inherit sys.flags on Windows
...
Initial patch by Sergey Mezentsev.
2012-05-18 14:28:02 +01:00
Richard Oudkerk
59d5404bc7
Issue #14753 : Make multiprocessing treat negative timeouts as it did in 3.2
...
In Python 3.2 and earlier, Process.join() and Connection.poll()
treated negative timeouts as zero timeouts. Earlier versions from
the 3.3 line of development treat them as infinite timeouts.
The patch reverts to the old behaviour.
2012-05-10 16:11:12 +01:00
Richard Oudkerk
5d73c178a8
Issue #14727 : Fix race in test_multiprocessing
2012-05-08 22:24:47 +01:00
Richard Oudkerk
104b3f4bf7
Minor fix for test_multiprocessing
2012-05-08 16:08:07 +01:00
Richard Oudkerk
6dbca367dc
Make test_multiprocessing more lenient about another timeout check
2012-05-06 16:46:36 +01:00
Richard Oudkerk
7ef909cdd7
Fix for issue 14725 for 3.2 branch
2012-05-05 20:41:23 +01:00
Richard Oudkerk
fdb8dcf675
Fix for Issue 14725 for 3.3 branch.
2012-05-05 19:45:37 +01:00
Richard Oudkerk
009b15e2c3
Give test_multiprocessing better chance of avoiding timeout failures on Windows
2012-05-04 09:44:39 +01:00
Richard Oudkerk
a6becaa9cb
Fix dangling warning for test_multiprocessing
2012-05-03 18:29:02 +01:00
Richard Oudkerk
225cb8d077
Make test_multiprocessing cleanup properly
...
Previously, when an error was encountered some processes would not be
stopped until atexit callbacks were run. On Windows that was too late
to prevent a PermissionError when regrtest tried to remove the temp
directory it ran the tests in.
2012-05-02 19:36:11 +01:00
Richard Oudkerk
2452419921
Issue #14669 : Skip multiprocessing connection pickling test on MacOSX
...
Passing of fds is unreliable on MacOSX, compare issues #6560 and #12958 .
2012-04-30 14:48:51 +01:00
Richard Oudkerk
4460c3476d
Minor fix for multiprocessing unit test
...
Read from socket might have returned partial message.
2012-04-30 14:48:50 +01:00
Antoine Pitrou
92ff4e196b
Issue #14666 : stop multiprocessing's resource-sharing thread after the tests are done.
...
Also, block delivery of signals to that thread. Patch by Richard Oudkerk.
This will hopefully fix sporadic freezes on the FreeBSD 9.0 buildbot.
2012-04-27 23:51:03 +02:00
Antoine Pitrou
5438ed1572
Issue #4892 : multiprocessing Connections can now be transferred over multiprocessing Connections.
...
Patch by Richard Oudkerk (sbt).
2012-04-24 22:56:57 +02:00
Antoine Pitrou
23bba4ca39
Issue #11750 : The Windows API functions scattered in the _subprocess and
...
_multiprocessing.win32 modules now live in a single module "_winapi".
Patch by sbt.
2012-04-18 20:51:15 +02:00
Charles-François Natali
c8ce715a82
Issue #14087 : multiprocessing: add Condition.wait_for(). Patch by sbt.
2012-04-17 18:45:57 +02:00
Antoine Pitrou
5c73e8eaf4
Issue #14482 : Raise a ValueError, not a NameError, when trying to create
...
a multiprocessing Client or Listener with an AF_UNIX type address under
Windows. Patch by Popa Claudiu.
2012-04-03 20:13:45 +02:00
Antoine Pitrou
6d20cba8d6
Issue #14482 : Raise a ValueError, not a NameError, when trying to create
...
a multiprocessing Client or Listener with an AF_UNIX type address under
Windows. Patch by Popa Claudiu.
2012-04-03 20:12:23 +02:00
Antoine Pitrou
93bba8fb8a
Issue #14151 : Raise a ValueError, not a NameError, when trying to create
...
a multiprocessing Client or Listener with an AF_PIPE type address under
non-Windows platforms. Patch by Popa Claudiu.
2012-04-01 17:25:49 +02:00
Antoine Pitrou
709176f10c
Issue #14151 : Raise a ValueError, not a NameError, when trying to create
...
a multiprocessing Client or Listener with an AF_PIPE type address under
non-Windows platforms. Patch by Popa Claudiu.
2012-04-01 17:19:09 +02:00
Antoine Pitrou
3774977de2
Relax timeout tests for weak Windows buildbot
2012-03-09 18:40:15 +01:00
Antoine Pitrou
5bb9a8f237
Remove a couple of local imports.
2012-03-06 13:43:24 +01:00
Antoine Pitrou
6c64cc1973
Reap processes at test end to avoid false positives in reference leak detection.
2012-03-06 13:42:35 +01:00