openwebos/luna-sysmgr — pull request #20 by morphis (2012-12-03 10:18:31+00:00)
Title: MemoryMonitor: use /proc/*/oom_score_adj rather than /proc/*/oom_adj

On newer kernels /proc/*/oom_adj is deprecated and should not be used anymore. As Open
webOS requires at least a linux 3.3 kernel this changes the use to the new
/proc/*/oom_score_adj entry.

Running a 3.0.49 kernel together with LunaSysMgr shows the following in kernel log:

[ 28.763610] WebAppMgr (2090): /proc/2090/oom_adj is deprecated, please use
/proc/2090/oom_score_adj instead.

Open-webOS-DCO-1.0-Signed-off-by: Simon Busch