]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/process-util.h
process-util: add new helper call for adjusting the OOM score
[thirdparty/systemd.git] / src / basic / process-util.h
index f8d1b5e3e8f57b41496d7fafc8cf4a25b471e285..0cec7c4c5ca4fbc8ee0dd4b7146c03b90c9aaef7 100644 (file)
@@ -173,6 +173,8 @@ static inline int safe_fork(const char *name, ForkFlags flags, pid_t *ret_pid) {
 
 int fork_agent(const char *name, const int except[], size_t n_except, pid_t *pid, const char *path, ...);
 
+int set_oom_score_adjust(int value);
+
 #if SIZEOF_PID_T == 4
 /* The highest possibly (theoretic) pid_t value on this architecture. */
 #define PID_T_MAX ((pid_t) INT32_MAX)