Skip to main content

set_up_process

Function set_up_process 

Source
pub(crate) fn set_up_process() -> Result<()>
Expand description

Set up the process before it forks: remember the OOM score and raise the open files limit for the runtimes, configure malloc and protect the server from the OOM killer. The server keeps the C locale, unlike conmon, so that the errors it returns to CRI-O do not depend on the environment. The umask is set before the configuration prepares the runtime directories, see crate::run.