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 2016-11-20 18:21:05 +00:00
parent e56ff7d6f1
commit 42ed91d126

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