Hi Steven, > @@ -966,6 +899,13 @@ bool reinit_after_fork(struct messaging_context *msg_ctx, > * numbers as each other */ > set_need_random_reseed(); > > +#ifdef WITH_MADVISE_PROTECTED > + /* Protect parent process from being killed by kernel when system > + * memory is low. Child processes can still be killed */ > + if(!parent_longlived) > + madvise(NULL,0,MADV_PROTECT); > +#endif > +
I think that will still protect the child, I think we need to reset the flag in the child, or does fork() auto resets it? metze
signature.asc
Description: OpenPGP digital signature
