- 通用的服务启动模板
- 使用信号实现优雅的退出程序,以达到服务终止前清理资源
- c++
- cmake
git clone https://github.com/BAMSHK/signal-handle-demo.git
cd signal-handle-demomkdir build
cd build
cmake ..
makePID的值在程序的输出中查看 例如 kill -s SIGINT 1111
kill -s SIGINT {PID} 或者 kill -s SIGUSR1 {PID}
GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||
GeezerVison is showing github.com — GitHub - BAMSHK/signal-handle-demo: 服务启动模板,信号处理、优雅退出程序 Folders and files
Repository files navigation
git clone https://github.com/BAMSHK/signal-handle-demo.git cd signal-handle-demomkdir build
cd build
cmake ..
makePID的值在程序的输出中查看 例如 kill -s SIGINT 1111 kill -s SIGINT {PID} 或者 kill -s SIGUSR1 {PID} About服务启动模板,信号处理、优雅退出程序 ResourcesReleasesPackagesContributorsLanguages | |||||||||||||||||||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | |||||||||||||||||||||||