diff options
| author | wangmenglan <[email protected]> | 2023-05-31 19:41:18 +0800 |
|---|---|---|
| committer | wangmenglan <[email protected]> | 2023-05-31 20:17:22 +0800 |
| commit | 0973d8c35a57bfcb8044b18d5dd674657d0a159a (patch) | |
| tree | 030525c5a6f18347a840445f17ee251d9c3c400d /platform/src/proxy.cpp | |
| parent | 657456627667239d2ee1b0983fbe7f46cd577032 (diff) | |
🐞 fix(TSG-15308): 修复packet io thread启动时,intercept_policy_enforcer为空导致corev4.8.19-20230602
Diffstat (limited to 'platform/src/proxy.cpp')
| -rw-r--r-- | platform/src/proxy.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/src/proxy.cpp b/platform/src/proxy.cpp index 1a2cac4..7c57f99 100644 --- a/platform/src/proxy.cpp +++ b/platform/src/proxy.cpp @@ -72,6 +72,7 @@ static int signals[] = {SIGHUP, SIGPIPE, SIGUSR1, SIGUSR2}; void * g_default_logger = NULL; struct tfe_proxy * g_default_proxy = NULL; bool g_print_to_stderr = true; +int worker_thread_ready = 0; /* Per thread resource */ thread_local unsigned int __currect_thread_id = 0; @@ -749,6 +750,7 @@ int main(int argc, char * argv[]) g_print_to_stderr = false; sleep(1); } + worker_thread_ready = 1; event_base_dispatch(g_default_proxy->evbase); return 0; |
