1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-25 07:49:18 +00:00
freebsd/libexec
Mike Walker 68e035c017 rc.subr: Make sure oomprotect protects existing children
The rc(8) framework support protecting services from OOM killer.
The current implementation applies the protection after the service has
already started. This works fine if only the main process is to be
protected (*_oomprotect=yes). However, the current implementation fails
to protect existing children when children are also to be protected
(*_oomprotect=all). This patch fixes that.

Note: it is not easy to apply the protectoin earlier because we want to
support both the services which use the "command" variable and those
that use the "start_cmd" variable.

PR:		256148
Approved by:	adrian, osogbo
Tested by:	Jamie Landeg-Jones <jamie@catflap.org>
Fixes:		3bead71e95 - Add a global option where we can protect
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D35747
2022-07-08 08:19:50 +02:00
..
atf testing: provide meaningful error when pytest is not available 2022-07-06 19:55:58 +00:00
atrun
blacklistd-helper
bootpd
comsat
dma
fingerd
flua
ftpd ftp: Use /var/spool/ftp as ftp's home consistently 2022-06-28 15:20:05 +02:00
getty
hyperv
mail.local
makewhatis.local
mknetid
phttpget
pppoed
rbootd
rc rc.subr: Make sure oomprotect protects existing children 2022-07-08 08:19:50 +02:00
revnetgroup
rpc.rquotad
rpc.rstatd
rpc.rusersd
rpc.rwalld
rpc.sprayd
rtld-elf
rtld-elf32
save-entropy
smrsh
talkd
tcpd
telnetd
tests
tftp-proxy
tftpd
ulog-helper
ypxfr
Makefile
Makefile.amd64
Makefile.i386
Makefile.inc