123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- --- perp-2.07/runtools/runchoom.c.orig 2019-12-18 13:00:02.306978796 +0000
- +++ perp-2.07/runtools/runchoom.c 2019-12-18 13:01:01.463113686 +0000
- @@ -1,5 +1,5 @@
- /* runchoom.c
- -** run a program after writing "-17\n" to /proc/<pid>/oom_adj
- +** run a program after writing "-17\n" to /proc/<pid>/oom_score_adj
- ** (abatement for "dreaded linux oom killer")
- ** wcm, 2011.03.18 - 2011.03.22
- ** ===
- @@ -32,7 +32,7 @@
- #endif
-
- #ifndef CHOOM_KEY_DEFAULT
- -#define CHOOM_KEY_DEFAULT "oom_adj"
- +#define CHOOM_KEY_DEFAULT "oom_score_adj"
- #endif
-
- /* see proc(5) manual (linux-specific): */
- --- perp-2.07/runtools/man/runchoom.8.orig 2013-01-11 15:10:33.000000000 +0000
- +++ perp-2.07/runtools/man/runchoom.8 2019-12-18 13:01:10.967139845 +0000
- @@ -21,7 +21,7 @@
- .SH DESCRIPTION
- .B runchoom
- writes the string ``-17'' and a newline into the procfile
- -.IR /proc/<pid>/oom_adj ,
- +.IR /proc/<pid>/oom_score_adj ,
- where
- .I <pid>
- is the process id of
- @@ -79,7 +79,7 @@
- Normally
- .B runchoom
- uses the compiled-in default value
- -.I oom_adj
- +.I oom_score_adj
- for the last element of the target procfile.
- The
- .B \-k
- @@ -193,7 +193,7 @@
- .RE
- .SH NOTES
- On a system where the
- -.I oom_adj
- +.I oom_score_adj
- procfile is operative,
- the setting installed by
- .B runchoom
- @@ -210,7 +210,7 @@
- .BR perpetrate (5)
- runscripts of any selected services to
- reset the
- -.I oom_adj
- +.I oom_score_adj
- parameter of a process to a default state:
- .PP
- .RS
|