summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-04-14 16:24:37 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-04-14 16:24:37 (GMT)
commit40470e00b539095ee576513f7a98cfda020583c3 (patch)
tree788faf862d878a0f825441a8731a95e5940ac13a
parent9da047b3a5d1a5421ee829aab1e9bc57427826c9 (diff)
downloadcpython-40470e00b539095ee576513f7a98cfda020583c3.zip
cpython-40470e00b539095ee576513f7a98cfda020583c3.tar.gz
cpython-40470e00b539095ee576513f7a98cfda020583c3.tar.bz2
do not generate pipe names in the temporary dir
-rw-r--r--Lib/multiprocessing/connection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/multiprocessing/connection.py b/Lib/multiprocessing/connection.py
index b4f81ba..3bc716f 100644
--- a/Lib/multiprocessing/connection.py
+++ b/Lib/multiprocessing/connection.py
@@ -76,7 +76,7 @@ def arbitrary_address(family):
return tempfile.mktemp(prefix='listener-', dir=util.get_temp_dir())
elif family == 'AF_PIPE':
return tempfile.mktemp(prefix=r'\\.\pipe\pyc-%d-%d-' %
- (os.getpid(), next(_mmap_counter)))
+ (os.getpid(), next(_mmap_counter)), dir="")
else:
raise ValueError('unrecognized family')