From 30517b0148e2378b03d801a16afb168b2fb9fcbc Mon Sep 17 00:00:00 2001 From: xiaolandan Date: Wed, 7 Jun 2023 03:43:43 +0000 Subject: [PATCH] =?UTF-8?q?update=20Lib/multiprocessing/connection.py.=20C?= =?UTF-8?q?VE-2022-42919=20Python=20=E5=AD=98=E5=9C=A8=E5=AE=89=E5=85=A8?= =?UTF-8?q?=E6=BC=8F=E6=B4=9E=EF=BC=8C=E8=AF=A5=E6=BC=8F=E6=B4=9E=E6=BA=90?= =?UTF-8?q?=E4=BA=8E=20Python=20multiprocessing=20=E5=BA=93=E5=9C=A8=20Lin?= =?UTF-8?q?ux=20=E4=B8=8A=E4=B8=8E=20forkserver=20=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E4=B8=80=E8=B5=B7=E4=BD=BF=E7=94=A8=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=85=81=E8=AE=B8=E4=BB=8E=E5=90=8C=E4=B8=80=E6=9C=BA?= =?UTF-8?q?=E5=99=A8=E6=9C=AC=E5=9C=B0=E7=BD=91=E7=BB=9C=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E7=A9=BA=E9=97=B4=E4=B8=AD=E7=9A=84=E4=BB=BB=E4=BD=95=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=8F=8D=E5=BA=8F=E5=88=97=E5=8C=96=20Python=20pickle?= =?UTF-8?q?=EF=BC=8C=E8=BF=99=E5=9C=A8=E8=AE=B8=E5=A4=9A=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=B8=AD=E6=84=8F=E5=91=B3=E7=9D=80=E5=90=8C?= =?UTF-8?q?=E4=B8=80=E6=9C=BA=E5=99=A8=E4=B8=8A=E7=9A=84=E4=BB=BB=E4=BD=95?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xiaolandan --- Lib/multiprocessing/connection.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Lib/multiprocessing/connection.py b/Lib/multiprocessing/connection.py index 510e4b5..6704a73 100644 --- a/Lib/multiprocessing/connection.py +++ b/Lib/multiprocessing/connection.py @@ -73,11 +73,7 @@ def arbitrary_address(family): if family == 'AF_INET': return ('localhost', 0) elif family == 'AF_UNIX': - # Prefer abstract sockets if possible to avoid problems with the address - # size. When coding portable applications, some implementations have - # sun_path as short as 92 bytes in the sockaddr_un struct. - if util.abstract_sockets_supported: - return f"\0listener-{os.getpid()}-{next(_mmap_counter)}" + return tempfile.mktemp(prefix='listener-', dir=util.get_temp_dir()) elif family == 'AF_PIPE': return tempfile.mktemp(prefix=r'\\.\pipe\pyc-%d-%d-' % -- Gitee