How to catch the kill signals sent by the kill
command in C programs on Linux?
For example, I have a daemon progd
running, and will kill it by:
pkill progd
The question is how to catch the signal sent by the kill
command and response to it in the progd
program implemented in C on Linux?
Check Catching the Signal Sent by Kill in C on Linux.