stages: 2/02-squashfs: apply some patches from Debian to make the ISO more reliable
[dragora.git] / patches / perp / perp-2.07-oom_score_adj-runchoom.diff
blob39ba23ee8748ff5013b4ffd0c874d339a722d828
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
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 12:10:33.000000000 -0300
20 +++ perp-2.07/runtools/man/runchoom.8 2018-05-01 15:26:10.882876181 -0300
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