1 --- perp-2.07/runtools/runchoom.c.orig 2013-01-11 12:10:32.000000000 -0300
2 +++ perp-2.07/runtools/runchoom.c 2018-05-01 15:24:18.883874277 -0300
5 -** run a program after writing "-17\n" to /proc/<pid>/oom_adj
6 +** run a program after writing "-17\n" to /proc/<pid>/oom_score_adj
7 ** (abatement for "dreaded linux oom killer")
8 ** wcm, 2011.03.18 - 2011.03.22
13 #ifndef CHOOM_KEY_DEFAULT
14 -#define CHOOM_KEY_DEFAULT "oom_adj"
15 +#define CHOOM_KEY_DEFAULT "oom_score_adj"
18 /* see proc(5) manual (linux-specific): */
19 --- perp-2.07/runtools/man/runchoom.8.orig 2013-01-11 12:10:33.000000000 -0300
20 +++ perp-2.07/runtools/man/runchoom.8 2018-05-01 15:26:10.882876181 -0300
24 writes the string ``-17'' and a newline into the procfile
25 -.IR /proc/<pid>/oom_adj ,
26 +.IR /proc/<pid>/oom_score_adj ,
33 uses the compiled-in default value
36 for the last element of the target procfile.
45 procfile is operative,
46 the setting installed by
50 runscripts of any selected services to
54 parameter of a process to a default state: