diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-08-31 01:33:39 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-08-31 01:33:43 +0200 |
commit | dd6c17b1595ff8a78ebae6cf571fd222c80bfd17 (patch) | |
tree | 1c3409f81d533008deeb3725b27b1f2de57e204a /src/dbus-execute.h | |
parent | 71916d3fff97c6026b5e8bb2c8e4169ab14dc3ad (diff) |
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.
Diffstat (limited to 'src/dbus-execute.h')
-rw-r--r-- | src/dbus-execute.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dbus-execute.h b/src/dbus-execute.h index 03a474ede2..f1814315f7 100644 --- a/src/dbus-execute.h +++ b/src/dbus-execute.h @@ -54,7 +54,7 @@ " <property name=\"LimitRTTIME\" type=\"t\" access=\"read\"/>\n" \ " <property name=\"WorkingDirectory\" type=\"s\" access=\"read\"/>\n" \ " <property name=\"RootDirectory\" type=\"s\" access=\"read\"/>\n" \ - " <property name=\"OOMAdjust\" type=\"i\" access=\"read\"/>\n" \ + " <property name=\"OOMScoreAdjust\" type=\"i\" access=\"read\"/>\n" \ " <property name=\"Nice\" type=\"i\" access=\"read\"/>\n" \ " <property name=\"IOScheduling\" type=\"i\" access=\"read\"/>\n" \ " <property name=\"CPUSchedulingPolicy\" type=\"i\" access=\"read\"/>\n" \ @@ -111,7 +111,7 @@ { interface, "LimitRTTIME", bus_execute_append_rlimits, "t", &(context) }, \ { interface, "WorkingDirectory", bus_property_append_string, "s", (context).working_directory }, \ { interface, "RootDirectory", bus_property_append_string, "s", (context).root_directory }, \ - { interface, "OOMAdjust", bus_execute_append_oom_adjust, "i", &(context) }, \ + { interface, "OOMScoreAdjust", bus_execute_append_oom_score_adjust, "i", &(context) }, \ { interface, "Nice", bus_execute_append_nice, "i", &(context) }, \ { interface, "IOScheduling", bus_execute_append_ioprio, "i", &(context) }, \ { interface, "CPUSchedulingPolicy", bus_execute_append_cpu_sched_policy, "i", &(context) }, \ @@ -156,7 +156,7 @@ int bus_execute_append_output(Manager *m, DBusMessageIter *i, const char *property, void *data); int bus_execute_append_input(Manager *m, DBusMessageIter *i, const char *property, void *data); -int bus_execute_append_oom_adjust(Manager *m, DBusMessageIter *i, const char *property, void *data); +int bus_execute_append_oom_score_adjust(Manager *m, DBusMessageIter *i, const char *property, void *data); int bus_execute_append_nice(Manager *m, DBusMessageIter *i, const char *property, void *data); int bus_execute_append_ioprio(Manager *m, DBusMessageIter *i, const char *property, void *data); int bus_execute_append_cpu_sched_policy(Manager *m, DBusMessageIter *i, const char *property, void *data); |