diff options
| author | Mariusz Zaborski <oshogbo@FreeBSD.org> | 2021-06-24 18:14:31 +0000 |
|---|---|---|
| committer | Mateusz Piotrowski <0mp@FreeBSD.org> | 2022-07-07 18:13:24 +0000 |
| commit | c54008fe2a3b9dbb1cf9e443f38593228242918b (patch) | |
| tree | 8bc1f8634ee184ff565dec26874a5a611ffe17d5 /libexec/rc | |
| parent | eb6e41c32e5b3baa57b906630c405829a4e5680b (diff) | |
Diffstat (limited to 'libexec/rc')
| -rw-r--r-- | libexec/rc/rc.subr | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/rc/rc.subr b/libexec/rc/rc.subr index d2a980e94ab1..77b26614fd11 100644 --- a/libexec/rc/rc.subr +++ b/libexec/rc/rc.subr @@ -1260,13 +1260,13 @@ $command $rc_flags $command_args" # 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 |
