Add --ignore-user option to skip processes by username or UID - #375
Add --ignore-user option to skip processes by username or UID #375bhzhu203 wants to merge 2 commits into
Conversation
Allow users to specify one or more users (by name or numeric UID) whose processes should never be killed by earlyoom. The option can be repeated to ignore multiple users.
getpwnam depends on glibc NSS modules which are loaded dynamically and do not work reliably in statically linked binaries. Read /etc/passwd directly to resolve usernames to UIDs instead.
|
Hi, I'm missing the rationale here. When would you want this? |
|
earlyoom frequently terminates one of my crucial programs, which consumes a relatively high amount of memory. Additionally, this submission includes a static compilation fix to ensure compatibility with compilation under Alpine Linux |
|
What should earlyoom kill instead when memory is low? |
Other non-essential processes are allowed to be killed, such as those not on the whitelist (use the --ignore-user option to skip processes by username or UID). This allows a series of whitelisted processes to be added to the ignore list of earlyoom |
No description provided.