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
41e7244c
Kaydet (Commit)
41e7244c
authored
Mar 14, 2015
tarafından
Steve Dower
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixes incorrect use of GetLastError where errno should be used.
üst
0d70ab6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
fileutils.c
Python/fileutils.c
+6
-6
No files found.
Python/fileutils.c
Dosyayı görüntüle @
41e7244c
...
...
@@ -593,7 +593,7 @@ get_inheritable(int fd, int raise)
handle
=
(
HANDLE
)
_get_osfhandle
(
fd
);
if
(
handle
==
INVALID_HANDLE_VALUE
)
{
if
(
raise
)
PyErr_SetFrom
WindowsErr
(
0
);
PyErr_SetFrom
Errno
(
PyExc_OSError
);
return
-
1
;
}
...
...
@@ -648,10 +648,10 @@ set_inheritable(int fd, int inheritable, int raise, int *atomic_flag_works)
if
(
atomic_flag_works
!=
NULL
&&
!
inheritable
)
{
if
(
*
atomic_flag_works
==
-
1
)
{
int
inheritable
=
get_inheritable
(
fd
,
raise
);
if
(
inheritable
==
-
1
)
int
i
sI
nheritable
=
get_inheritable
(
fd
,
raise
);
if
(
i
sI
nheritable
==
-
1
)
return
-
1
;
*
atomic_flag_works
=
!
inheritable
;
*
atomic_flag_works
=
!
i
sI
nheritable
;
}
if
(
*
atomic_flag_works
)
...
...
@@ -668,7 +668,7 @@ set_inheritable(int fd, int inheritable, int raise, int *atomic_flag_works)
handle
=
(
HANDLE
)
_get_osfhandle
(
fd
);
if
(
handle
==
INVALID_HANDLE_VALUE
)
{
if
(
raise
)
PyErr_SetFrom
WindowsErr
(
0
);
PyErr_SetFrom
Errno
(
PyExc_OSError
);
return
-
1
;
}
...
...
@@ -1027,7 +1027,7 @@ _Py_dup(int fd)
#ifdef MS_WINDOWS
handle
=
(
HANDLE
)
_get_osfhandle
(
fd
);
if
(
handle
==
INVALID_HANDLE_VALUE
)
{
PyErr_SetFrom
WindowsErr
(
0
);
PyErr_SetFrom
Errno
(
PyExc_OSError
);
return
-
1
;
}
...
...
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