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
6b077878
Commit
6b077878
authored
May 18, 1998
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove use of RTLD_GLOBAL.
parent
c85be6a0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
Python/importdl.c
Python/importdl.c
+4
-6
No files found.
Python/importdl.c
View file @
6b077878
...
...
@@ -182,9 +182,6 @@ typedef void (*dl_funcptr)();
#ifndef RTLD_LAZY
#define RTLD_LAZY 1
#endif
#ifndef RTLD_GLOBAL
#define RTLD_GLOBAL 0
#endif
#define SHORT_EXT ".so"
#define LONG_EXT "module.so"
#endif
/* USE_SHLIB */
...
...
@@ -376,13 +373,13 @@ _PyImport_LoadDynamicModule(name, pathname, fp)
#ifdef RTLD_NOW
/* RTLD_NOW: resolve externals now
(i.e. core dump now if some are missing) */
void
*
handle
=
dlopen
(
pathname
,
RTLD_NOW
|
RTLD_GLOBAL
);
void
*
handle
=
dlopen
(
pathname
,
RTLD_NOW
);
#else
void
*
handle
;
if
(
Py_VerboseFlag
)
printf
(
"dlopen(
\"
%s
\"
, %d);
\n
"
,
pathname
,
RTLD_LAZY
|
RTLD_GLOBAL
);
handle
=
dlopen
(
pathname
,
RTLD_LAZY
|
RTLD_GLOBAL
);
RTLD_LAZY
);
handle
=
dlopen
(
pathname
,
RTLD_LAZY
);
#endif
/* RTLD_NOW */
if
(
handle
==
NULL
)
{
PyErr_SetString
(
PyExc_ImportError
,
dlerror
());
...
...
@@ -562,6 +559,7 @@ _PyImport_LoadDynamicModule(name, pathname, fp)
printf
(
"shl_load %s
\n
"
,
pathname
);
}
lib
=
shl_load
(
pathname
,
flags
,
0
);
/* XXX Chuck Blake once wrote that 0 should be BIND_NOSTART? */
if
(
lib
==
NULL
)
{
char
buf
[
256
];
...
...
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