[Python-checkins] cpython (3.4): do not generate pipe names in the temporary dir

benjamin.peterson python-checkins at python.org
Mon Apr 14 19:13:07 CEST 2014


http://hg.python.org/cpython/rev/0d64a930e846
changeset:   90273:0d64a930e846
branch:      3.4
parent:      90271:39ee3286d187
user:        Benjamin Peterson <benjamin at python.org>
date:        Mon Apr 14 12:24:37 2014 -0400
summary:
  do not generate pipe names in the temporary dir

files:
  Lib/multiprocessing/connection.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/multiprocessing/connection.py b/Lib/multiprocessing/connection.py
--- a/Lib/multiprocessing/connection.py
+++ b/Lib/multiprocessing/connection.py
@@ -76,7 +76,7 @@
         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')
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list