diff --git a/audit-oom_score_adj.patch b/audit-oom_score_adj.patch index 6a6cbb1..1aed673 100644 --- a/audit-oom_score_adj.patch +++ b/audit-oom_score_adj.patch @@ -21,7 +21,7 @@ Index: src/auditd.c + /* Newer kernels (noticed in 2.6.36) */ + oomfd = open("/proc/self/oom_score_adj", O_NOFOLLOW | O_WRONLY); + if (oomfd >= 0) { -+ (void)write(oomfd, "0", 1); ++ (void)write(oomfd, "-1000", sizeof("-1000")); + close(oomfd); + return; + } diff --git a/audit.changes b/audit.changes index d5f5e35..846039e 100644 --- a/audit.changes +++ b/audit.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 21 10:33:40 UTC 2011 - aj@suse.de + +- Fix value of oom_score_adj. + ------------------------------------------------------------------- Tue Dec 7 21:17:24 UTC 2010 - coolo@novell.com