diff options
author | Kay Sievers <kay@vrfy.org> | 2012-06-04 16:41:10 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-06-04 16:41:10 +0200 |
commit | 8600c525cb1420570e7670c963abd19c5696b683 (patch) | |
tree | cd5cb6072749f964b958b2c5907c1c9999861a42 /src/core/dbus-execute.c | |
parent | d315bba6f6c9d929acdbf3c37cbcf6c9a72365ac (diff) |
remove support for deprecated /proc/self/oom_adj
Diffstat (limited to 'src/core/dbus-execute.c')
-rw-r--r-- | src/core/dbus-execute.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c index f1a9da0c57..9322cdfd86 100644 --- a/src/core/dbus-execute.c +++ b/src/core/dbus-execute.c @@ -83,14 +83,6 @@ int bus_execute_append_oom_score_adjust(DBusMessageIter *i, const char *property if (read_one_line_file("/proc/self/oom_score_adj", &t) >= 0) { safe_atoi(t, &n); free(t); - } else if (read_one_line_file("/proc/self/oom_adj", &t) >= 0) { - safe_atoi(t, &n); - free(t); - - if (n == OOM_ADJUST_MAX) - n = OOM_SCORE_ADJ_MAX; - else - n = (n * OOM_SCORE_ADJ_MAX) / -OOM_DISABLE; } } |