Fixed child process signal behaviours. (#128)

* Restored signal handlers upon fork().
* Improved error handling of hpfs process kill scenario.
* Set pgid for forked processes for graceful sending of SIGINT.
This commit is contained in:
Ravin Perera
2020-09-26 21:39:26 +05:30
committed by GitHub
parent 05f356f6e0
commit 4d920a9219
9 changed files with 36 additions and 23 deletions

View File

@@ -295,7 +295,7 @@ namespace comm
else if (pid == 0)
{
// Websocketd process.
util::unmask_signal();
util::fork_detach();
// We are using websocketd forked repo: https://github.com/codetsunami/websocketd