Seems I have a ghost process reading from a SysV queue on RedHat. I am looking at readers and writers to a queue with the following command:
Code:
ipcs -q -i 53674024
The output I get is the following:
Code:
Message Queue msqid=53674024
uid=500 gid=500 cuid=500 cgid=500 mode=0660
cbytes=0 qbytes=262144 qnum=0 lspid=31975 lrpid=32061
send_time=Sat Nov 10 03:29:56 2012
rcv_time=Sat Nov 10 03:29:56 2012
change_time=Sat Nov 10 03:17:13 2012
Next I try to find the process listed in lrpid with the following:
The result is no such pid on the system. I keep rerunning the ipcs command and can see that the rcv_time is being updated so we are not talking about a process that existed earlier and is no longer around.
I should mention that the expected results for the ipcs command should indicate a different lrpid. And indeed continuously rerunning the command using watch I can see my correct application pid show up. But then the 'ghost' one shows up again. Am I missing something here? Are there other options to ps that I'm unaware of?
System and environment info:
2.6.18-238.12.1.el5 smp (rhel 5.8)
I'm running shell as root but application is a daemon running as different user.