]> granicus.if.org Git - python/commitdiff
do not generate pipe names in the temporary dir
authorBenjamin Peterson <benjamin@python.org>
Mon, 14 Apr 2014 16:24:37 +0000 (12:24 -0400)
committerBenjamin Peterson <benjamin@python.org>
Mon, 14 Apr 2014 16:24:37 +0000 (12:24 -0400)
Lib/multiprocessing/connection.py

index b4f81ba984e12f58111d312079e4ac46de52c8b3..3bc716f4d417b7a6d205acfd858bd51658db9026 100644 (file)
@@ -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')