Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
8c349565
Unverified
Kaydet (Commit)
8c349565
authored
Ock 16, 2019
tarafından
Victor Stinner
Kaydeden (comit)
GitHub
Ock 16, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Revert "bpo-35537: subprocess can now use os.posix_spawnp (GH-11579)" (GH-11582)
This reverts commit
07858894
.
üst
07858894
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
13 deletions
+6
-13
3.8.rst
Doc/whatsnew/3.8.rst
+2
-1
subprocess.py
Lib/subprocess.py
+3
-10
pythoninfo.py
Lib/test/pythoninfo.py
+1
-2
No files found.
Doc/whatsnew/3.8.rst
Dosyayı görüntüle @
8c349565
...
...
@@ -281,7 +281,8 @@ Optimizations
* *close_fds* is false;
* *preexec_fn*, *pass_fds*, *cwd*, *stdin*, *stdout*, *stderr* and
*start_new_session* parameters are not set.
*start_new_session* parameters are not set;
* the *executable* path contains a directory.
* :func:`shutil.copyfile`, :func:`shutil.copy`, :func:`shutil.copy2`,
:func:`shutil.copytree` and :func:`shutil.move` use platform-specific
...
...
Lib/subprocess.py
Dosyayı görüntüle @
8c349565
...
...
@@ -655,7 +655,6 @@ def _use_posix_spawn():
_USE_POSIX_SPAWN
=
_use_posix_spawn
()
_HAVE_POSIX_SPAWNP
=
hasattr
(
os
,
'posix_spawnp'
)
class
Popen
(
object
):
...
...
@@ -1443,10 +1442,7 @@ class Popen(object):
def
_posix_spawn
(
self
,
args
,
executable
,
env
,
restore_signals
):
"""Execute program using os.posix_spawnp().
Or use os.posix_spawn() if os.posix_spawnp() is not available.
"""
"""Execute program using os.posix_spawn()."""
if
env
is
None
:
env
=
os
.
environ
...
...
@@ -1460,10 +1456,7 @@ class Popen(object):
sigset
.
append
(
signum
)
kwargs
[
'setsigdef'
]
=
sigset
if
_HAVE_POSIX_SPAWNP
:
self
.
pid
=
os
.
posix_spawnp
(
executable
,
args
,
env
,
**
kwargs
)
else
:
self
.
pid
=
os
.
posix_spawn
(
executable
,
args
,
env
,
**
kwargs
)
self
.
pid
=
os
.
posix_spawn
(
executable
,
args
,
env
,
**
kwargs
)
def
_execute_child
(
self
,
args
,
executable
,
preexec_fn
,
close_fds
,
pass_fds
,
cwd
,
env
,
...
...
@@ -1491,7 +1484,7 @@ class Popen(object):
executable
=
args
[
0
]
if
(
_USE_POSIX_SPAWN
and
(
_HAVE_POSIX_SPAWNP
or
os
.
path
.
dirname
(
executable
)
)
and
os
.
path
.
dirname
(
executable
)
and
preexec_fn
is
None
and
not
close_fds
and
not
pass_fds
...
...
Lib/test/pythoninfo.py
Dosyayı görüntüle @
8c349565
...
...
@@ -612,8 +612,7 @@ def collect_get_config(info_add):
def
collect_subprocess
(
info_add
):
import
subprocess
attrs
=
(
'_USE_POSIX_SPAWN'
,
'_HAVE_POSIX_SPAWNP'
)
copy_attributes
(
info_add
,
subprocess
,
'subprocess.
%
s'
,
attrs
)
copy_attributes
(
info_add
,
subprocess
,
'subprocess.
%
s'
,
(
'_USE_POSIX_SPAWN'
,))
def
collect_info
(
info
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment