What is my ping pid doing?
We deployed a simple script to try and identify network issues a while ago. The script loops indefinitely, running "/usr/sbin/ping -ns $HOST 56 60 >> $LOGFILE" throughout the day. We noticed today that the local $LOGFILE wasn't being updated, but the ping is still running:
$ ps -o pid,s,stime,args -p 17422
PID S STIME COMMAND
17422 S Mar_17 /usr/sbin/ping -ns 1.2.3.4 56 60
Note that PID 17422 was started March 17, and the ping command should have terminated after 60s, but it's still running.
It doesn't appear to be hung:
# truss -faildo /tmp/truss.out -p 17422
$ head -15 /tmp/truss.out
Base time stamp: 1332207093.2134 [ Tue Mar 20 01:31:33 GMT 2012 ]
$ ps -o pid,s,stime,args -p 17422
PID S STIME COMMAND
17422 S Mar_17 /usr/sbin/ping -ns 1.2.3.4 56 60
Note that PID 17422 was started March 17, and the ping command should have terminated after 60s, but it's still running.
It doesn't appear to be hung:
# truss -faildo /tmp/truss.out -p 17422
$ head -15 /tmp/truss.out
Base time stamp: 1332207093.2134 [ Tue Mar 20 01:31:33 GMT 2012 ]
0