svn commit: r308896 - head/etc
Jilles Tjoelker
jilles at FreeBSD.org
Sun Nov 20 18:21:06 UTC 2016
Author: jilles
Date: Sun Nov 20 18:21:05 2016
New Revision: 308896
URL: https://svnweb.freebsd.org/changeset/base/308896
Log:
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.
Modified:
head/etc/rc.subr
Modified: head/etc/rc.subr
==============================================================================
--- head/etc/rc.subr Sun Nov 20 18:20:28 2016 (r308895)
+++ head/etc/rc.subr Sun Nov 20 18:21:05 2016 (r308896)
@@ -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
More information about the svn-src-all
mailing list