1 --- perp-2.07/runtools/runchoom.c.orig 2019-12-18 13:00:02.306978796 +0000
2 +++ perp-2.07/runtools/runchoom.c 2019-12-18 13:01:01.463113686 +0000
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 15:10:33.000000000 +0000
20 +++ perp-2.07/runtools/man/runchoom.8 2019-12-18 13:01:10.967139845 +0000
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: