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
edc67fea
Kaydet (Commit)
edc67fea
authored
Şub 04, 2012
tarafından
Charles-François Natali
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #8184: Fix a potential file descriptor leak when a
multiprocessing.Connection socket can't be bound.
üst
d85d0e72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
connection.py
Lib/multiprocessing/connection.py
+8
-4
No files found.
Lib/multiprocessing/connection.py
Dosyayı görüntüle @
edc67fea
...
@@ -575,10 +575,14 @@ class SocketListener(object):
...
@@ -575,10 +575,14 @@ class SocketListener(object):
'''
'''
def
__init__
(
self
,
address
,
family
,
backlog
=
1
):
def
__init__
(
self
,
address
,
family
,
backlog
=
1
):
self
.
_socket
=
socket
.
socket
(
getattr
(
socket
,
family
))
self
.
_socket
=
socket
.
socket
(
getattr
(
socket
,
family
))
self
.
_socket
.
setsockopt
(
socket
.
SOL_SOCKET
,
socket
.
SO_REUSEADDR
,
1
)
try
:
self
.
_socket
.
bind
(
address
)
self
.
_socket
.
setsockopt
(
socket
.
SOL_SOCKET
,
socket
.
SO_REUSEADDR
,
1
)
self
.
_socket
.
listen
(
backlog
)
self
.
_socket
.
bind
(
address
)
self
.
_address
=
self
.
_socket
.
getsockname
()
self
.
_socket
.
listen
(
backlog
)
self
.
_address
=
self
.
_socket
.
getsockname
()
except
OSError
:
self
.
_socket
.
close
()
raise
self
.
_family
=
family
self
.
_family
=
family
self
.
_last_accepted
=
None
self
.
_last_accepted
=
None
...
...
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