#!/bin/ksh
#
# (c) 2000 Sun Microsystems, Inc.
#

match=$1

# throw away the first two lines

read dummy
read dummy

while read f stat pid ppid
do
   if [ "$pid" = "$match" ]
   then
      echo $stat
      exit $stat
   fi
done

exit 255
