From 729385283501853346b5a60df6b141dc15d98c45 Mon Sep 17 00:00:00 2001 From: Yaroslav Tykhiy Date: Fri, 18 Aug 2006 13:07:38 +0000 Subject: [PATCH] Eliminate header line(s) from ps(1) output instead of skipping over them. --- etc/rc.subr | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/etc/rc.subr b/etc/rc.subr index d2fc642a5dfb..3a2fd167216c 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=" ";