qi: Bump to release candidate 2.10-rc3
[dragora.git] / patches / perp / runchoom-use-oom_score_adj
blob01181ad96d1024f300984ddb073340db51a55106
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
3 @@ -1,5 +1,5 @@
4  /* runchoom.c
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
9  ** ===
10 @@ -32,7 +32,7 @@
11  #endif
13  #ifndef CHOOM_KEY_DEFAULT
14 -#define CHOOM_KEY_DEFAULT  "oom_adj"
15 +#define CHOOM_KEY_DEFAULT  "oom_score_adj"
16  #endif
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
21 @@ -21,7 +21,7 @@
22  .SH DESCRIPTION
23  .B runchoom
24  writes the string ``-17'' and a newline into the procfile
25 -.IR /proc/<pid>/oom_adj ,
26 +.IR /proc/<pid>/oom_score_adj ,
27  where
28  .I <pid>
29  is the process id of
30 @@ -79,7 +79,7 @@
31  Normally
32  .B runchoom
33  uses the compiled-in default value
34 -.I oom_adj
35 +.I oom_score_adj
36  for the last element of the target procfile.
37  The
38  .B \-k
39 @@ -193,7 +193,7 @@
40  .RE
41  .SH NOTES
42  On a system where the
43 -.I oom_adj
44 +.I oom_score_adj
45  procfile is operative,
46  the setting installed by
47  .B runchoom
48 @@ -210,7 +210,7 @@
49  .BR perpetrate (5)
50  runscripts of any selected services to
51  reset the
52 -.I oom_adj
53 +.I oom_score_adj
54  parameter of a process to a default state:
55  .PP
56  .RS