process-util: add new helper call for adjusting the OOM score

And let's make use of it in execute.c
This commit is contained in:
Lennart Poettering
2018-05-17 20:47:21 +02:00
parent e9eb2c02f0
commit 9f8168eb23
3 changed files with 14 additions and 9 deletions
+2
View 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)