FreeBSD Bugzilla – Attachment 233999 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]
Revised rc.subr patch to use $_pidcmd as well as protect -d
rc.subr.diff (text/plain), 593 bytes, created by
Mike Walker
on 2022-05-17 13:42:53 UTC
(
hide
)
Description:
Revised rc.subr patch to use $_pidcmd as well as protect -d
Filename:
MIME Type:
Creator:
Mike Walker
Created:
2022-05-17 13:42:53 UTC
Size:
593 bytes
patch
obsolete
>--- /etc/rc.subr.orig 2022-05-17 13:39:53.201345000 +0000 >+++ /etc/rc.subr 2022-05-17 13:38:42.887066000 +0000 >@@ -1272,13 +1272,13 @@ > # We cannot use protect(1) inside jails. > if [ -n "$_oomprotect" ] && [ -f "${PROTECT}" ] && > [ "$(sysctl -n security.jail.jailed)" -eq 0 ]; then >- pid=$(check_process $command) >+ [ -z "${rc_pid}" ] && eval $_pidcmd > case $_oomprotect in > [Aa][Ll][Ll]) >- ${PROTECT} -i -d -p ${pid} >+ ${PROTECT} -i -d -p ${rc_pid} > ;; > [Yy][Ee][Ss]) >- ${PROTECT} -p ${pid} >+ ${PROTECT} -p ${rc_pid} > ;; > 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