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
4bf22e03
Kaydet (Commit)
4bf22e03
authored
Ock 15, 2015
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
asyncio: Close the transport on subprocess creation failure
üst
fcd58de7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
unix_events.py
Lib/asyncio/unix_events.py
+5
-1
windows_events.py
Lib/asyncio/windows_events.py
+6
-1
No files found.
Lib/asyncio/unix_events.py
Dosyayı görüntüle @
4bf22e03
...
@@ -177,7 +177,11 @@ class _UnixSelectorEventLoop(selector_events.BaseSelectorEventLoop):
...
@@ -177,7 +177,11 @@ class _UnixSelectorEventLoop(selector_events.BaseSelectorEventLoop):
transp
=
_UnixSubprocessTransport
(
self
,
protocol
,
args
,
shell
,
transp
=
_UnixSubprocessTransport
(
self
,
protocol
,
args
,
shell
,
stdin
,
stdout
,
stderr
,
bufsize
,
stdin
,
stdout
,
stderr
,
bufsize
,
extra
=
extra
,
**
kwargs
)
extra
=
extra
,
**
kwargs
)
yield
from
transp
.
_post_init
()
try
:
yield
from
transp
.
_post_init
()
except
:
transp
.
close
()
raise
watcher
.
add_child_handler
(
transp
.
get_pid
(),
watcher
.
add_child_handler
(
transp
.
get_pid
(),
self
.
_child_watcher_callback
,
transp
)
self
.
_child_watcher_callback
,
transp
)
...
...
Lib/asyncio/windows_events.py
Dosyayı görüntüle @
4bf22e03
...
@@ -272,7 +272,12 @@ class ProactorEventLoop(proactor_events.BaseProactorEventLoop):
...
@@ -272,7 +272,12 @@ class ProactorEventLoop(proactor_events.BaseProactorEventLoop):
transp
=
_WindowsSubprocessTransport
(
self
,
protocol
,
args
,
shell
,
transp
=
_WindowsSubprocessTransport
(
self
,
protocol
,
args
,
shell
,
stdin
,
stdout
,
stderr
,
bufsize
,
stdin
,
stdout
,
stderr
,
bufsize
,
extra
=
extra
,
**
kwargs
)
extra
=
extra
,
**
kwargs
)
yield
from
transp
.
_post_init
()
try
:
yield
from
transp
.
_post_init
()
except
:
transp
.
close
()
raise
return
transp
return
transp
...
...
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