FreeBSD Bugzilla – Attachment 225247 Details for
Bug 256148
[patch] rc.subr handling of ${name}_oomprotect for services with multiple processes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
rc.subr support for services with multiple processes
rc.subr.patch (text/plain), 657 bytes, created by
Mike Walker
on 2021-05-25 13:59:35 UTC
(
hide
)
Description:
rc.subr support for services with multiple processes
Filename:
MIME Type:
Creator:
Mike Walker
Created:
2021-05-25 13:59:35 UTC
Size:
657 bytes
patch
obsolete
>--- /etc/rc.subr.orig 2021-05-25 13:21:30.761680000 +0000 >+++ /etc/rc.subr 2021-05-25 13:21:34.930815000 +0000 >@@ -1257,13 +1257,17 @@ > # We cannot use protect(1) inside jails. > if [ -n "$_oomprotect" ] && [ -f "${PROTECT}" ] && > [ "$(sysctl -n security.jail.jailed)" -eq 0 ]; then >- pid=$(check_process $command) >+ pids=$(check_process $command) > case $_oomprotect in > [Aa][Ll][Ll]) >- ${PROTECT} -i -p ${pid} >+ for pid in $pids; do >+ ${PROTECT} -i -p ${pid} >+ done > ;; > [Yy][Ee][Ss]) >- ${PROTECT} -p ${pid} >+ for pid in $pids; do >+ ${PROTECT} -p ${pid} >+ done > ;; > esac > fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 256148
:
225247
|
233999