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
e7c74923
Kaydet (Commit)
e7c74923
authored
Nis 02, 2015
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #23851: close() must not be retried when it fails with EINTR
See the PEP 475 for the rationale.
üst
d223fa63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
_posixsubprocess.c
Modules/_posixsubprocess.c
+6
-6
No files found.
Modules/_posixsubprocess.c
Dosyayı görüntüle @
e7c74923
...
...
@@ -207,13 +207,13 @@ _close_fds_by_brute_force(long start_fd, PyObject *py_fds_to_keep)
if
(
keep_fd
<
start_fd
)
continue
;
for
(
fd_num
=
start_fd
;
fd_num
<
keep_fd
;
++
fd_num
)
{
while
(
close
(
fd_num
)
<
0
&&
errno
==
EINTR
);
close
(
fd_num
);
}
start_fd
=
keep_fd
+
1
;
}
if
(
start_fd
<=
end_fd
)
{
for
(
fd_num
=
start_fd
;
fd_num
<
end_fd
;
++
fd_num
)
{
while
(
close
(
fd_num
)
<
0
&&
errno
==
EINTR
);
close
(
fd_num
);
}
}
}
...
...
@@ -274,11 +274,11 @@ _close_open_fds_safe(int start_fd, PyObject* py_fds_to_keep)
continue
;
/* Not a number. */
if
(
fd
!=
fd_dir_fd
&&
fd
>=
start_fd
&&
!
_is_fd_in_sorted_fd_sequence
(
fd
,
py_fds_to_keep
))
{
while
(
close
(
fd
)
<
0
&&
errno
==
EINTR
);
close
(
fd
);
}
}
}
while
(
close
(
fd_dir_fd
)
<
0
&&
errno
==
EINTR
);
close
(
fd_dir_fd
);
}
}
...
...
@@ -312,7 +312,7 @@ _close_open_fds_maybe_unsafe(long start_fd, PyObject* py_fds_to_keep)
* reuse that fd otherwise we might close opendir's file descriptor in
* our loop. This trick assumes that fd's are allocated on a lowest
* available basis. */
while
(
close
(
start_fd
)
<
0
&&
errno
==
EINTR
);
close
(
start_fd
);
++
start_fd
;
#endif
...
...
@@ -339,7 +339,7 @@ _close_open_fds_maybe_unsafe(long start_fd, PyObject* py_fds_to_keep)
continue
;
/* Not a number. */
if
(
fd
!=
fd_used_by_opendir
&&
fd
>=
start_fd
&&
!
_is_fd_in_sorted_fd_sequence
(
fd
,
py_fds_to_keep
))
{
while
(
close
(
fd
)
<
0
&&
errno
==
EINTR
);
close
(
fd
);
}
errno
=
0
;
}
...
...
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