View | Details | Raw Unified | Return to bug 256148 | Differences between
and this patch

Collapse All | Expand All

(-)/etc/rc.subr (-3 / +3 lines)
Lines 1272-1284 Link Here
1272
			# We cannot use protect(1) inside jails.
1272
			# We cannot use protect(1) inside jails.
1273
			if [ -n "$_oomprotect" ] && [ -f "${PROTECT}" ] &&
1273
			if [ -n "$_oomprotect" ] && [ -f "${PROTECT}" ] &&
1274
				[ "$(sysctl -n security.jail.jailed)" -eq 0 ]; then
1274
				[ "$(sysctl -n security.jail.jailed)" -eq 0 ]; then
1275
				pid=$(check_process $command)
1275
				[ -z "${rc_pid}" ] && eval $_pidcmd
1276
				case $_oomprotect in
1276
				case $_oomprotect in
1277
				[Aa][Ll][Ll])
1277
				[Aa][Ll][Ll])
1278
					${PROTECT} -i -d -p ${pid}
1278
					${PROTECT} -i -d -p ${rc_pid}
1279
					;;
1279
					;;
1280
				[Yy][Ee][Ss])
1280
				[Yy][Ee][Ss])
1281
					${PROTECT} -p ${pid}
1281
					${PROTECT} -p ${rc_pid}
1282
					;;
1282
					;;
1283
				esac
1283
				esac
1284
			fi
1284
			fi

Return to bug 256148