One of our applications communicates to another process through a pty (/dev/pts/nn) device. For the most part this works very, very well.
Lately it has begun to "hang" where the one application is writing to the pty device but never completes. However, the receiving application does NOT receive it. If I cat from the pty device I see the data in the buffer (actually it flushes).
We have verified that there is a '\n' at the end of each record sent. We suspect it may be flow control (if there is any) but we have no way to determine if that is the case.
Hence, my question: Does anyone know of a way to display the current state of the pty device at the time it is locked/hung?
Any/all suggestions appreciated.
Thank you.
Lately it has begun to "hang" where the one application is writing to the pty device but never completes. However, the receiving application does NOT receive it. If I cat from the pty device I see the data in the buffer (actually it flushes).
We have verified that there is a '\n' at the end of each record sent. We suspect it may be flow control (if there is any) but we have no way to determine if that is the case.
Hence, my question: Does anyone know of a way to display the current state of the pty device at the time it is locked/hung?
Any/all suggestions appreciated.
Thank you.