Skip to content

SysTutorials

  • Tutorials
  • Linux
  • Linux Manuals
  • Systems
  • Programming
  • Software
  • Subscribe
  • Search
SysTutorials

sigkill

Linux | Programming | Tutorial

How to Catch the Signal Sent by Kill in C on Linux

ByEric Ma May 29, 2014Aug 30, 2020

Programs may want to catch the kill signals sent by the kill command in C programs on Linux so that it can gracefully shutdown itself before it is killed. For example, I have a daemon progd running, and it may be killed by pkill progd. The progd may want to save some in-memory state to…

Read More How to Catch the Signal Sent by Kill in C on LinuxContinue

© 2025 SysTutorials

  • Tutorials
  • Linux
  • Linux Manuals
  • Systems
  • Programming
  • Software
  • Subscribe
  • Search