Skip to content

  • Projeler
  • Gruplar
  • Parçacıklar
  • Yardım
    • Yükleniyor...
  • Oturum aç / Kaydol
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
  • Etkinlik
  • Grafik
  • Grafikler
  • Yeni bir konu (issue) oluştur
  • İşler
  • Kayıtlar (commit)
  • Konu (issue) Panoları
  • Batuhan Osman TASKAYA
  • cpython
  • Repository

Dal (branch)/etiket değiştir
  • cpython
  • Lib
  • subprocess.py
Dosya bul
BlameHistoryPermalink
  • Ruslan Kuprieiev's avatar
    bpo-37380: subprocess: don't use _active on win (GH-14360) · 042821ae
    Ruslan Kuprieiev Haz 28, 2019 yazdı
    As noted by @eryksun in [1] and [2], using _cleanup and _active(in
    __del__) is not necessary on Windows, since:
    
    > Unlike Unix, a process in Windows doesn't have to be waited on by
    > its parent to avoid a zombie. Keeping the handle open will actually
    > create a zombie until the next _cleanup() call, which may be never
    > if Popen() isn't called again.
    
    This patch simply defines `subprocess._active` as `None`, for which we already
    have the proper logic in place in `subprocess.Popen.__del__`, that prevents it
    from trying to append the process to the `_active`. This patch also defines
    `subprocess._cleanup` as a noop for Windows.
    
    [1] https://bugs.python.org/issue37380#msg346333
    [2] https://bugs.python.org/issue36067#msg336262Signed-off-by: 's avatarRuslan Kuprieiev <ruslan@iterative.ai>
    042821ae
subprocess.py 74.4 KB
DüzenleWeb IDE

Replace subprocess.py

Sürükleyip bırakarak bir dosya ekle veya yüklemek için tıklayın


İptal
Çatalınızda (fork) yeni bir dal (branch) oluşturulacak ve yeni bir birleştirme (merge) talebi başlatılacak.