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
9fb1aca5
Kaydet (Commit)
9fb1aca5
authored
Eyl 06, 2008
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Backport relevant part of r66274 (in issue #874900).
üst
fe38e441
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
threading.py
Lib/threading.py
+5
-2
No files found.
Lib/threading.py
Dosyayı görüntüle @
9fb1aca5
...
...
@@ -847,9 +847,12 @@ def _after_fork():
new_active
=
{}
current
=
current_thread
()
with
_active_limbo_lock
:
for
ident
,
thread
in
_active
.
iteritem
s
():
for
thread
in
_active
.
itervalue
s
():
if
thread
is
current
:
# There is only one active thread.
# There is only one active thread. We reset the ident to
# its new value since it can have changed.
ident
=
_get_ident
()
thread
.
_Thread__ident
=
ident
new_active
[
ident
]
=
thread
else
:
# All the others are already stopped.
...
...
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