blob: ee60011072a17b65f7a76ba41dccc5dfba928672 [file] [log] [blame]
#!/bin/sh
PIDFILE=cc.pid
echo;
if [ -f ${PIDFILE} ] ; then
PID=`cat ${PIDFILE}`
# I've found lsof is in /user/sbin on some machines
nthreads=`/usr/bin/lsof -p $PID | wc -l`
echo " Number of threads in wtp's CC process: $nthreads"
else
echo " PID file (${PIDFILE}) does not exist."
echo " Either CC not running, or PID file deleted"
fi
echo