Updated hpws binary with fd and zombie cleanup fixes. (#141)

This commit is contained in:
Ravin Perera
2020-11-04 06:29:35 +05:30
committed by GitHub
parent 7a4515865d
commit 254e92fc7c
4 changed files with 52 additions and 18 deletions

View File

@@ -130,6 +130,10 @@ int main(int argc, char **argv)
signal(SIGSEGV, &segfault_handler);
signal(SIGABRT, &segfault_handler);
// Become a sub-reaper so we can gracefully reap hpws child processes via hpws.hpp.
// (Otherwise they will get reaped by OS init process and we'll end up with race conditions with gracefull kills)
prctl(PR_SET_CHILD_SUBREAPER, 1);
// seed rand
srand(util::get_epoch_milliseconds());