Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] optimized(host): SetDumpStackSignal handler at startup #21678

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zexi
Copy link
Member

@zexi zexi commented Nov 25, 2024

What this PR does / why we need it:

  • 现在信号注册函数是在服务监听端口后,才开始注册 SIGUSR1 信号处理函数,但目前 host 服务注册流程比较长,导致 listen 之前无法 dump stack ,所以提前注册
  • signalutils.SetDumpStackSignal()和signalutils.StartTrap() 两个方法的实现是可以重复调用的,所以提前调用没有影响

Does this PR need to be backport to the previous release branch?:

@zexi zexi force-pushed the host-register-signal-handler branch from 1a44cbf to 2c92b43 Compare November 26, 2024 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants