Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to display current state of PTS device?

Status
Not open for further replies.

BobMCT

IS-IT--Management
Sep 11, 2000
756
0
0
US
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.
 
hi ,
you can try ps -ft pts?

if you have lsof you can view what processes are attached to the tty port.

(lsof is a shareware utility)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top