How to restart C daemon program in Linux after receiving SIGHUP signal

前端 未结 4 1915
故里飘歌
故里飘歌 2021-01-12 10:57

Can anybody please post some example code on how I can reread a configuration file and restart my daemon after the daemon receives a SIGHUP signal. The daemon is a user spac

4条回答
  •  长情又很酷
    2021-01-12 11:33

    Another, slightly more elaborate, example is here:

    http://man7.org/tlpi/code/online/dist/daemons/daemon_SIGHUP.c.html

提交回复
热议问题