cherokee / webserver

Cherokee Web Server
GNU General Public License v2.0
568 stars 104 forks source link

Fix SIGTERM handling in cherokee main process #1190

Closed mathkn closed 7 years ago

mathkn commented 7 years ago

If cherokee is not run in daemon mode, it will send a SIGTERM to its process group when receiving a SIGTERM. This might kill the parent process as well. To prevent this, setpgid() is used to create a new process group for cherokee and its child processes. fixes #1189

skinkie commented 7 years ago

Thanks!