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
e8cd6bb1
Kaydet (Commit)
e8cd6bb1
authored
Eyl 13, 2012
tarafından
Richard Oudkerk
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #15881: Clarify comment in exit function
üst
0b90d663
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
util.py
Lib/multiprocessing/util.py
+11
-8
No files found.
Lib/multiprocessing/util.py
Dosyayı görüntüle @
e8cd6bb1
...
@@ -290,14 +290,17 @@ def _exit_function(info=info, debug=debug, _run_finalizers=_run_finalizers,
...
@@ -290,14 +290,17 @@ def _exit_function(info=info, debug=debug, _run_finalizers=_run_finalizers,
if
current_process
()
is
not
None
:
if
current_process
()
is
not
None
:
# We check if the current process is None here because if
# We check if the current process is None here because if
# it's None, any call to ``active_children()`` will throw an
# it's None, any call to ``active_children()`` will throw
# AttributeError (active_children winds up trying to get
# an AttributeError (active_children winds up trying to
# attributes from util._current_process). This happens in a
# get attributes from util._current_process). One
# variety of shutdown circumstances that are not well-understood
# situation where this can happen is if someone has
# because module-scope variables are not apparently supposed to
# manipulated sys.modules, causing this module to be
# be destroyed until after this function is called. However,
# garbage collected. The destructor for the module type
# they are indeed destroyed before this function is called. See
# then replaces all values in the module dict with None.
# issues #9775 and #15881. Also related: #4106, #9205, and #9207.
# For instance, after setuptools runs a test it replaces
# sys.modules with a copy created earlier. See issues
# #9775 and #15881. Also related: #4106, #9205, and
# #9207.
for
p
in
active_children
():
for
p
in
active_children
():
if
p
.
_daemonic
:
if
p
.
_daemonic
:
...
...
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