GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - BAMSHK/signal-handle-demo: 服务启动模板,信号处理、优雅退出程序

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
CMakeLists.txt
CMakeLists.txt
 
 
README.md
README.md
 
 

Repository files navigation

signal-handle-demo

一、项目说明

1. 功能说明

  • 通用的服务启动模板
  • 使用信号实现优雅的退出程序,以达到服务终止前清理资源

2. 语言

  • c++

3. 编译工具

  • cmake

二、 使用说明

1. 拉取代码

git clone https://github.com/BAMSHK/signal-handle-demo.git

2. 进入项目

cd signal-handle-demo

3. 编译且执行

mkdir build
cd build
cmake ..
make

4. 终止程序

PID的值在程序的输出中查看 例如 kill -s SIGINT 1111

kill -s SIGINT {PID}
或者
kill -s SIGUSR1 {PID}

About

服务启动模板,信号处理、优雅退出程序

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

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.