svn commit: r332367 - stable/11/etc
Kyle Evans
kevans at FreeBSD.org
Tue Apr 10 14:00:46 UTC 2018
Author: kevans
Date: Tue Apr 10 14:00:45 2018
New Revision: 332367
URL: https://svnweb.freebsd.org/changeset/base/332367
Log:
MFC r308896
r308896: 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:
stable/11/etc/rc.subr
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/etc/rc.subr
==============================================================================
--- stable/11/etc/rc.subr Tue Apr 10 13:56:30 2018 (r332366)
+++ stable/11/etc/rc.subr Tue Apr 10 14:00:45 2018 (r332367)
@@ -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-stable-11
mailing list