How to check if a process has filled the STDOUT or STDERR buffer

view story

http://stackoverflow.com – Given a process on a Linux machine which appears to be stuck, how can I tell if it is stuck due to the STDOUT or STDERR buffer being full? In my particular case, I have a process which is performing no CPU activity, but remains running when I would expect it to have exited within a few seconds. My suspicion is that the process has filled up the buffer for STDOUT or STDERR and the process which is supposed to be reading from that the buffer has stopped doing so for some reason. Is there any way I can confirm this suspicion? (HowTos)