blob: ee60011072a17b65f7a76ba41dccc5dfba928672 [file] [log] [blame]
david_williams9e2ff0e2009-01-14 02:42:39 +00001#!/bin/sh
2PIDFILE=cc.pid
3echo;
4if [ -f ${PIDFILE} ] ; then
5 PID=`cat ${PIDFILE}`
6 # I've found lsof is in /user/sbin on some machines
7 nthreads=`/usr/bin/lsof -p $PID | wc -l`
8 echo " Number of threads in wtp's CC process: $nthreads"
9else
10 echo " PID file (${PIDFILE}) does not exist."
11 echo " Either CC not running, or PID file deleted"
12fi
13echo