SIGHUP for reloading configuration

后端 未结 2 852
终归单人心
终归单人心 2021-02-03 22:22

According to signal(7), SIGHUP is used to detect hangup on controlling terminal or death of controlling process.

However, I have come across a

2条回答
  •  生来不讨喜
    2021-02-03 22:47

    In my experience, SIGHUP is commonly used to request that a daemon reload its configuration. Using this well-known technique follows the principle of least surprise. Your users have likely encountered daemons which do exactly this, so they'll immediately understand what SIGHUP means to your daemon.

提交回复
热议问题