rc.subr: $(ps -p $$ -o jid=) is always 0, so do not fork ps for it.

The JID keyword writes 0 for a process also in the host system or in the
same jail.
This commit is contained in:
Jilles Tjoelker 2016-11-20 18:21:05 +00:00
parent dac458e0d6
commit 481b6d6f37
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=308896

View File

@ -49,7 +49,7 @@ PROTECT="/usr/bin/protect"
ID="/usr/bin/id"
IDCMD="if [ -x $ID ]; then $ID -un; fi"
PS="/bin/ps -ww"
JID=`$PS -p $$ -o jid=`
JID=0
#
# functions