command
Version:
v0.0.0-...-156932d
Opens a new window with list of versions in this module.
Published: Apr 14, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
热重启测试1
进程启动起来后,给它发信号SIGUSR1、SIGUSR2触发进程FORK逻辑,主进程会把listenfd传递给子进程,
因为同时传递了fd 0、1、2,所以在子进程中fd 3就是接收到的listenfd,通过它重建listener即可。
是不是热重启模式,通过一个自定义环境变量来指明,在fork前设置好环境变量,子进程启动时先检查它。
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.