🐞 fix(TSG-15308): 修复packet io thread启动时,intercept_policy_enforcer为空导致core
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user