Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f09994e5
Commit
f09994e5
authored
Nov 09, 2003
by
Alex Martelli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed wrong error checking on fcntl call as per SF bug # 821896
(same as commit of Sun Nov 2 to the release23-maint branch)
parent
0c5b4ad8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Lib/tempfile.py
Lib/tempfile.py
+3
-2
No files found.
Lib/tempfile.py
View file @
f09994e5
...
...
@@ -47,8 +47,9 @@ except (ImportError, AttributeError):
pass
else
:
def
_set_cloexec
(
fd
):
flags
=
_fcntl
.
fcntl
(
fd
,
_fcntl
.
F_GETFD
,
0
)
if
flags
>=
0
:
try
:
flags
=
_fcntl
.
fcntl
(
fd
,
_fcntl
.
F_GETFD
,
0
)
except
IOError
:
pass
else
:
# flags read successfully, modify
flags
|=
_fcntl
.
FD_CLOEXEC
_fcntl
.
fcntl
(
fd
,
_fcntl
.
F_SETFD
,
flags
)
...
...
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