From dd6c17b1595ff8a78ebae6cf571fd222c80bfd17 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 31 Aug 2010 01:33:39 +0200 Subject: exec: replace OOMAdjust= by OOMScoreAdjust= to follow new kernel interface This replaces OOMAdjust= by OOMScoreAdjust= in the config files, breaking compatibility with older unit files. However, this keeps compat with older kernels which lack the new OOM rework. --- src/execute.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/execute.h') diff --git a/src/execute.h b/src/execute.h index 0dc5a1d252..31cce5d7d2 100644 --- a/src/execute.h +++ b/src/execute.h @@ -97,7 +97,7 @@ struct ExecContext { char *working_directory, *root_directory; mode_t umask; - int oom_adjust; + int oom_score_adjust; int nice; int ioprio; int cpu_sched_policy; @@ -153,7 +153,7 @@ struct ExecContext { * don't enter a trigger loop. */ bool same_pgrp; - bool oom_adjust_set:1; + bool oom_score_adjust_set:1; bool nice_set:1; bool ioprio_set:1; bool cpu_sched_set:1; -- cgit v1.2.3-54-g00ecf