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
106f4c7b
Kaydet (Commit)
106f4c7b
authored
Eyl 24, 2002
tarafından
Thomas Heller
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
On Windows, call WSAGetLastError() to retrieve the error number.
Bugfix candidate, will backport to release22-maint myself.
üst
2f93644c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
selectmodule.c
Modules/selectmodule.c
+7
-1
No files found.
Modules/selectmodule.c
Dosyayı görüntüle @
106f4c7b
...
@@ -39,7 +39,7 @@ extern void bzero(void *, int);
...
@@ -39,7 +39,7 @@ extern void bzero(void *, int);
#endif
#endif
#ifdef MS_WINDOWS
#ifdef MS_WINDOWS
#include <win
sock
.h>
#include <win
dows
.h>
#else
#else
#ifdef __BEOS__
#ifdef __BEOS__
#include <net/socket.h>
#include <net/socket.h>
...
@@ -273,9 +273,15 @@ select_select(PyObject *self, PyObject *args)
...
@@ -273,9 +273,15 @@ select_select(PyObject *self, PyObject *args)
n
=
select
(
max
,
&
ifdset
,
&
ofdset
,
&
efdset
,
tvp
);
n
=
select
(
max
,
&
ifdset
,
&
ofdset
,
&
efdset
,
tvp
);
Py_END_ALLOW_THREADS
Py_END_ALLOW_THREADS
#ifdef MS_WINDOWS
if
(
n
==
SOCKET_ERROR
)
{
PyErr_SetExcFromWindowsErr
(
SelectError
,
WSAGetLastError
());
}
#else
if
(
n
<
0
)
{
if
(
n
<
0
)
{
PyErr_SetFromErrno
(
SelectError
);
PyErr_SetFromErrno
(
SelectError
);
}
}
#endif
else
if
(
n
==
0
)
{
else
if
(
n
==
0
)
{
/* optimization */
/* optimization */
ifdlist
=
PyList_New
(
0
);
ifdlist
=
PyList_New
(
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