am 32b039e4: Merge "RTLD_LAZY is not supported, use RTLD_NOW instead."
				
					
				
			* commit '32b039e46eee4d40b9979eab873a957e86fbf969': RTLD_LAZY is not supported, use RTLD_NOW instead.
This commit is contained in:
		@@ -34,7 +34,7 @@ static void netdClientInitFunction(void* handle, const char* symbol, FunctionTyp
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void netdClientInitImpl() {
 | 
					static void netdClientInitImpl() {
 | 
				
			||||||
    void* netdClientHandle = dlopen("libnetd_client.so", RTLD_LAZY);
 | 
					    void* netdClientHandle = dlopen("libnetd_client.so", RTLD_NOW);
 | 
				
			||||||
    if (netdClientHandle == NULL) {
 | 
					    if (netdClientHandle == NULL) {
 | 
				
			||||||
        // If the library is not available, it's not an error. We'll just use
 | 
					        // If the library is not available, it's not an error. We'll just use
 | 
				
			||||||
        // default implementations of functions that it would've overridden.
 | 
					        // default implementations of functions that it would've overridden.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -402,7 +402,7 @@ static void malloc_init_impl() {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Load .so that implements the required malloc debugging functionality.
 | 
					  // Load .so that implements the required malloc debugging functionality.
 | 
				
			||||||
  void* malloc_impl_handle = dlopen(so_name, RTLD_LAZY);
 | 
					  void* malloc_impl_handle = dlopen(so_name, RTLD_NOW);
 | 
				
			||||||
  if (malloc_impl_handle == NULL) {
 | 
					  if (malloc_impl_handle == NULL) {
 | 
				
			||||||
    error_log("%s: Missing module %s required for malloc debug level %d: %s",
 | 
					    error_log("%s: Missing module %s required for malloc debug level %d: %s",
 | 
				
			||||||
              getprogname(), so_name, g_malloc_debug_level, dlerror());
 | 
					              getprogname(), so_name, g_malloc_debug_level, dlerror());
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user