Lines 1257-1269
Link Here
|
1257 |
# We cannot use protect(1) inside jails. |
1257 |
# We cannot use protect(1) inside jails. |
1258 |
if [ -n "$_oomprotect" ] && [ -f "${PROTECT}" ] && |
1258 |
if [ -n "$_oomprotect" ] && [ -f "${PROTECT}" ] && |
1259 |
[ "$(sysctl -n security.jail.jailed)" -eq 0 ]; then |
1259 |
[ "$(sysctl -n security.jail.jailed)" -eq 0 ]; then |
1260 |
pid=$(check_process $command) |
1260 |
pids=$(check_process $command) |
1261 |
case $_oomprotect in |
1261 |
case $_oomprotect in |
1262 |
[Aa][Ll][Ll]) |
1262 |
[Aa][Ll][Ll]) |
1263 |
${PROTECT} -i -p ${pid} |
1263 |
for pid in $pids; do |
|
|
1264 |
${PROTECT} -i -p ${pid} |
1265 |
done |
1264 |
;; |
1266 |
;; |
1265 |
[Yy][Ee][Ss]) |
1267 |
[Yy][Ee][Ss]) |
1266 |
${PROTECT} -p ${pid} |
1268 |
for pid in $pids; do |
|
|
1269 |
${PROTECT} -p ${pid} |
1270 |
done |
1267 |
;; |
1271 |
;; |
1268 |
esac |
1272 |
esac |
1269 |
fi |
1273 |
fi |