🐞 fix(TSG-15308): 修复packet io thread启动时,intercept_policy_enforcer为空导致core

This commit is contained in:
wangmenglan
2023-05-31 19:41:18 +08:00
parent 6574566276
commit 0973d8c35a
3 changed files with 9 additions and 2 deletions

View File

@@ -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;