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:
parent
e56ff7d6f1
commit
42ed91d126
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user