diff options
author | Jilles Tjoelker <jilles@FreeBSD.org> | 2016-11-20 18:21:05 +0000 |
---|---|---|
committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2016-11-20 18:21:05 +0000 |
commit | 481b6d6f3776a9ee559c1855d0c25f39a26ae8b3 (patch) | |
tree | 80240b52ad901fca99ef0bfadc58e0f953f97de0 /etc | |
parent | dac458e0d6d560fa0ce9943792b94f0db6e44788 (diff) | |
download | src-481b6d6f3776a9ee559c1855d0c25f39a26ae8b3.tar.gz src-481b6d6f3776a9ee559c1855d0c25f39a26ae8b3.zip |
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.
Notes
Notes:
svn path=/head/; revision=308896
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc.subr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.subr b/etc/rc.subr index 7eaa13a9401d..57154604028d 100644 --- a/etc/rc.subr +++ b/etc/rc.subr @@ -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 |