未验证 提交 fd8eb69a 编写于 作者: O openharmony_ci 提交者: Gitee

!852 【Release】code check

Merge pull request !852 from liyufan/OpenHarmony-3.2-Release
...@@ -38,7 +38,7 @@ static void clear_socket_function() ...@@ -38,7 +38,7 @@ static void clear_socket_function()
static void socket_finalize() static void socket_finalize()
{ {
((finalize_func_type)shared_lib_func[FINALIZE_FUNC])(); ((finalize_func_type)shared_lib_func[FINALIZE_FUNC])();
__current_dispatch = NULL; __current_dispatch = 0;
__socket_hook_begin_flag = false; __socket_hook_begin_flag = false;
// Don't dlclose because hidumper crash // Don't dlclose because hidumper crash
} }
...@@ -51,7 +51,7 @@ static bool finish_install_ohos_socket_hooks(const char* options) ...@@ -51,7 +51,7 @@ static bool finish_install_ohos_socket_hooks(const char* options)
return false; return false;
} }
int ret_value = atexit(socket_finalize); atexit(socket_finalize);
return true; return true;
} }
...@@ -106,7 +106,7 @@ static void install_ohos_socket_hook() ...@@ -106,7 +106,7 @@ static void install_ohos_socket_hook()
return; return;
} }
__current_dispatch = NULL; __current_dispatch = 0;
shared_library_handle = load_socket_hook_shared_library(); shared_library_handle = load_socket_hook_shared_library();
if (shared_library_handle == NULL) { if (shared_library_handle == NULL) {
return; return;
...@@ -116,7 +116,7 @@ static void install_ohos_socket_hook() ...@@ -116,7 +116,7 @@ static void install_ohos_socket_hook()
__ohos_socket_hook_shared_library = (long long)shared_library_handle; __ohos_socket_hook_shared_library = (long long)shared_library_handle;
__current_dispatch = (long long)(&__musl_libc_socket_dispatch); __current_dispatch = (long long)(&__musl_libc_socket_dispatch);
} else { } else {
__ohos_socket_hook_shared_library = NULL; __ohos_socket_hook_shared_library = 0;
dlclose((void *)shared_library_handle); dlclose((void *)shared_library_handle);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册