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
d45382db
Commit
d45382db
authored
Jan 21, 2012
by
Gregory P. Smith
Browse files
Options
Browse Files
Download
Plain Diff
bugfix for *BSD platforms. (oops messed up #define)
parents
61f0da8c
e9b7cab1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
Modules/_posixsubprocess.c
Modules/_posixsubprocess.c
+2
-4
No files found.
Modules/_posixsubprocess.c
View file @
d45382db
...
...
@@ -21,10 +21,8 @@
# define dirent dirent64
# if !defined(HAVE_DIRFD)
/* Some versions of Solaris lack dirfd(). */
# define
DIRFD
(dirp) ((dirp)->dd_fd)
# define
dirfd
(dirp) ((dirp)->dd_fd)
# define HAVE_DIRFD
# else
# define DIRFD(dirp) (dirfd(dirp))
# endif
#endif
...
...
@@ -250,7 +248,7 @@ static void _close_open_fd_range_maybe_unsafe(int start_fd, int end_fd,
}
else
{
struct
dirent
*
dir_entry
;
#ifdef HAVE_DIRFD
int
fd_used_by_opendir
=
DIRFD
(
proc_fd_dir
);
int
fd_used_by_opendir
=
dirfd
(
proc_fd_dir
);
#else
int
fd_used_by_opendir
=
start_fd
-
1
;
#endif
...
...
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