Commit 40470e00 authored by Benjamin Peterson's avatar Benjamin Peterson

do not generate pipe names in the temporary dir

parent 9da047b3
...@@ -76,7 +76,7 @@ def arbitrary_address(family): ...@@ -76,7 +76,7 @@ def arbitrary_address(family):
return tempfile.mktemp(prefix='listener-', dir=util.get_temp_dir()) return tempfile.mktemp(prefix='listener-', dir=util.get_temp_dir())
elif family == 'AF_PIPE': elif family == 'AF_PIPE':
return tempfile.mktemp(prefix=r'\\.\pipe\pyc-%d-%d-' % return tempfile.mktemp(prefix=r'\\.\pipe\pyc-%d-%d-' %
(os.getpid(), next(_mmap_counter))) (os.getpid(), next(_mmap_counter)), dir="")
else: else:
raise ValueError('unrecognized family') raise ValueError('unrecognized family')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment