mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Updated hpws binary with fd and zombie cleanup fixes. (#141)
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user