[svn-commits] russell: trunk r183242 - in /trunk: ./ include/asterisk/ main/
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Mar 19 13:00:19 CDT 2009
Author: russell
Date: Thu Mar 19 13:00:15 2009
New Revision: 183242
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=183242
Log:
Merged revisions 183241 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r183241 | russell | 2009-03-19 12:52:52 -0500 (Thu, 19 Mar 2009) | 2 lines
Remove the use of RTLD_NOLOAD, as it is not behaving like expected.
........
Modified:
trunk/ (props changed)
trunk/configure
trunk/configure.ac
trunk/include/asterisk/autoconfig.h.in
trunk/main/loader.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/configure.ac
URL: http://svn.digium.com/svn-view/asterisk/trunk/configure.ac?view=diff&rev=183242&r1=183241&r2=183242
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Thu Mar 19 13:00:15 2009
@@ -608,8 +608,6 @@
),
AC_MSG_RESULT(no)
)
-
-AST_C_DEFINE_CHECK([RTLD_NOLOAD], [RTLD_NOLOAD], [dlfcn.h])
AST_C_DEFINE_CHECK([IP_MTU_DISCOVER], [IP_MTU_DISCOVER], [netinet/in.h])
Modified: trunk/include/asterisk/autoconfig.h.in
URL: http://svn.digium.com/svn-view/asterisk/trunk/include/asterisk/autoconfig.h.in?view=diff&rev=183242&r1=183241&r2=183242
==============================================================================
--- trunk/include/asterisk/autoconfig.h.in (original)
+++ trunk/include/asterisk/autoconfig.h.in Thu Mar 19 13:00:15 2009
@@ -766,12 +766,6 @@
/* Define to indicate the ${ROUND_DESCRIP} library version */
#undef HAVE_ROUND_VERSION
-
-/* Define if your system has the RTLD_NOLOAD headers. */
-#undef HAVE_RTLD_NOLOAD
-
-/* Define RTLD_NOLOAD headers version */
-#undef HAVE_RTLD_NOLOAD_VERSION
/* Define to 1 if your system has /sbin/launchd. */
#undef HAVE_SBIN_LAUNCHD
Modified: trunk/main/loader.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/main/loader.c?view=diff&rev=183242&r1=183241&r2=183242
==============================================================================
--- trunk/main/loader.c (original)
+++ trunk/main/loader.c Thu Mar 19 13:00:15 2009
@@ -403,18 +403,6 @@
return NULL;
}
- /* if the system supports RTLD_NOLOAD, we can just 'promote' the flags
- on the already-opened library to what we want... if not, we have to
- close it and start over
- */
-#if defined(HAVE_RTLD_NOLOAD) && !defined(__Darwin__)
- if (!dlopen(fn, RTLD_NOLOAD | (wants_global ? RTLD_LAZY | RTLD_GLOBAL : RTLD_NOW | RTLD_LOCAL))) {
- ast_log(LOG_WARNING, "Unable to promote flags on module '%s': %s\n", resource_in, dlerror());
- while (!dlclose(lib));
- ast_free(resource_being_loaded);
- return NULL;
- }
-#else
while (!dlclose(lib));
resource_being_loaded = NULL;
@@ -435,7 +423,6 @@
/* since the module was successfully opened, and it registered itself
the previous time we did that, we're going to assume it worked this
time too :) */
-#endif
AST_LIST_LAST(&module_list)->lib = lib;
resource_being_loaded = NULL;
More information about the svn-commits
mailing list