Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131772541
D30367.id91317.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
583 B
Referenced Files
None
Subscribers
None
D30367.id91317.diff
View Options
diff --git a/libexec/rc/rc.subr b/libexec/rc/rc.subr
--- a/libexec/rc/rc.subr
+++ b/libexec/rc/rc.subr
@@ -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 -p ${pid}
+ ${PROTECT} -i -p ${rc_pid}
;;
[Yy][Ee][Ss])
- ${PROTECT} -p ${pid}
+ ${PROTECT} -p ${rc_pid}
;;
esac
fi
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 12, 1:21 AM (5 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23601526
Default Alt Text
D30367.id91317.diff (583 B)
Attached To
Mode
D30367: rc.subr: use _pidcmd to determine pid for protect
Attached
Detach File
Event Timeline
Log In to Comment