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
f328d792
Kaydet (Commit)
f328d792
authored
Kas 11, 2012
tarafından
Gregory P. Smith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Fixes issue #14396: Handle the odd rare case of waitpid returning 0
when not expected in subprocess.Popen.wait().
üst
34b14951
2ec82331
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
subprocess.py
Lib/subprocess.py
+7
-3
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/subprocess.py
Dosyayı görüntüle @
f328d792
...
...
@@ -1509,9 +1509,13 @@ class Popen(object):
raise
TimeoutExpired
(
self
.
args
,
timeout
)
delay
=
min
(
delay
*
2
,
remaining
,
.
05
)
time
.
sleep
(
delay
)
elif
self
.
returncode
is
None
:
(
pid
,
sts
)
=
self
.
_try_wait
(
0
)
self
.
_handle_exitstatus
(
sts
)
else
:
while
self
.
returncode
is
None
:
(
pid
,
sts
)
=
self
.
_try_wait
(
0
)
# Check the pid and loop as waitpid has been known to return
# 0 even without WNOHANG in odd situations. issue14396.
if
pid
==
self
.
pid
:
self
.
_handle_exitstatus
(
sts
)
return
self
.
returncode
...
...
Misc/NEWS
Dosyayı görüntüle @
f328d792
...
...
@@ -83,6 +83,9 @@ Core and Builtins
Library
-------
-
Issue
#
14396
:
Handle
the
odd
rare
case
of
waitpid
returning
0
when
not
expected
in
subprocess
.
Popen
.
wait
().
-
Issue
#
16411
:
Fix
a
bug
where
zlib
.
decompressobj
().
flush
()
might
try
to
access
previously
-
freed
memory
.
Patch
by
Serhiy
Storchaka
.
...
...
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