Skip to main content

reset_inherited

Function reset_inherited 

Source
pub(crate) fn reset_inherited(cmd: &mut Command)
Expand description

Give a child the OOM score adjustment, the transparent huge pages setting and the open files limits the server started with instead of its own, see save_oom_score, disable_thp and raise_nofile_limit. The runtimes pass them on to the container processes, an exec would be the last process the kernel picks otherwise. conmon resets the OOM score of its runtime the same way. Add it after the other pre_exec hooks, those run in order and may need the raised limit.