How to catch the kill signals sent by kill in C on Linux?

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?

asked May 27, 2014 by Eric Z Ma (44,280 points)

1 Answer

 
Best answer
answered May 28, 2014 by Eric Z Ma (44,280 points)
edited May 28, 2014 by Eric Z Ma

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...