diff options
Diffstat (limited to 'libexec/rc/rc.subr')
-rw-r--r-- | libexec/rc/rc.subr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rc/rc.subr b/libexec/rc/rc.subr index 6a10dcc8e01f..eaaa3c778bff 100644 --- a/libexec/rc/rc.subr +++ b/libexec/rc/rc.subr @@ -1294,7 +1294,7 @@ $command $rc_flags $command_args" start) # We cannot use protect(1) inside jails. if [ -n "$_oomprotect" ] && [ -f "${PROTECT}" ] && - [ "$(sysctl -n security.jail.jailed)" -eq 0 ]; then + ! check_jail jailed; then [ -z "${rc_pid}" ] && eval $_pidcmd case $_oomprotect in [Aa][Ll][Ll]) |