summaryrefslogtreecommitdiffstats
path: root/etc/rc.subr
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2006-08-18 13:07:38 +0000
committeryar <yar@FreeBSD.org>2006-08-18 13:07:38 +0000
commit3f0988c9787703dff83559c01fff2bda38111278 (patch)
tree1d6cda91677c1a9e40fbb34e24c926722f30a3cb /etc/rc.subr
parent904a0ff853dc8ae8c748cc59971376fcbae89f33 (diff)
downloadFreeBSD-src-3f0988c9787703dff83559c01fff2bda38111278.zip
FreeBSD-src-3f0988c9787703dff83559c01fff2bda38111278.tar.gz
Eliminate header line(s) from ps(1) output instead of skipping over them.
Diffstat (limited to 'etc/rc.subr')
-rw-r--r--etc/rc.subr7
1 files changed, 2 insertions, 5 deletions
diff --git a/etc/rc.subr b/etc/rc.subr
index d2fc642..3a2fd16 100644
--- a/etc/rc.subr
+++ b/etc/rc.subr
@@ -280,12 +280,9 @@ _find_processes()
fi
_proccheck="\
- $PS 2>/dev/null -o pid,jid,command $_psargs"' |
+ $PS 2>/dev/null -o pid= -o jid= -o command= $_psargs"' |
while read _npid _jid '"$_fp_args"'; do
- case "$_npid" in
- PID)
- continue;;
- esac; '"$_fp_match"'
+ '"$_fp_match"'
if [ "$JID" -eq "$_jid" ];
then echo -n "$_pref$_npid";
_pref=" ";
OpenPOWER on IntegriCloud