daemon restart itself on SIGHUP signal in C

I have a C daemon that needs to restart itself after any configuration file changes on receiving a SIGHUP signal. Can anybody post some example code on how to do it?
The daemon is started by a shell script.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories