Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
997ae1dc
Commit
997ae1dc
authored
Jan 31, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid dlclose() only when valgrind is running
parent
3ea8408d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
configure.ac
configure.ac
+5
-1
src/modules/os.c
src/modules/os.c
+7
-4
No files found.
configure.ac
View file @
997ae1dc
...
@@ -1565,7 +1565,11 @@ AC_ARG_ENABLE(debug,
...
@@ -1565,7 +1565,11 @@ AC_ARG_ENABLE(debug,
test "${enable_debug}" != "yes" && enable_debug="no"
test "${enable_debug}" != "yes" && enable_debug="no"
AH_TEMPLATE(NDEBUG,
AH_TEMPLATE(NDEBUG,
[Define to 1 if debug code should NOT be compiled])
[Define to 1 if debug code should NOT be compiled])
AS_IF([test "x${enable_debug}" = "xno"], [AC_DEFINE(NDEBUG)])
AS_IF([test "x${enable_debug}" = "xno"], [
AC_DEFINE(NDEBUG)
], [
AC_CHECK_HEADERS([valgrind/valgrind.h])
])
dnl
dnl
dnl Allow runing as root (usefull for people runing on embedded platforms)
dnl Allow runing as root (usefull for people runing on embedded platforms)
...
...
src/modules/os.c
View file @
997ae1dc
...
@@ -65,6 +65,9 @@
...
@@ -65,6 +65,9 @@
# include <dl.h>
# include <dl.h>
# endif
# endif
#endif
#endif
#ifdef HAVE_VALGRIND_VALGRIND_H
# include <valgrind/valgrind.h>
#endif
/*****************************************************************************
/*****************************************************************************
* Local prototypes
* Local prototypes
...
@@ -274,11 +277,11 @@ void module_Unload( module_handle_t handle )
...
@@ -274,11 +277,11 @@ void module_Unload( module_handle_t handle )
FreeLibrary
(
handle
);
FreeLibrary
(
handle
);
#elif defined(HAVE_DL_DLOPEN)
#elif defined(HAVE_DL_DLOPEN)
# ifdef NDEBUG
# ifdef HAVE_VALGRIND_VALGRIND_H
dlclose
(
handle
);
if
(
RUNNING_ON_VALGRIND
>
0
)
# else
return
;
/* do not dlclose() so that we get proper stack traces */
(
void
)
handle
;
# endif
# endif
dlclose
(
handle
);
#elif defined(HAVE_DL_SHL_LOAD)
#elif defined(HAVE_DL_SHL_LOAD)
shl_unload
(
handle
);
shl_unload
(
handle
);
...
...
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