[comp.sys.next] pty & text objects

dennisg@kgw2.uucp.WEC.COM (Dennis Glatting) (01/06/90)

here is an interesting problem.  maybe someone has seen it before and
could give me a clue.  i've got a app much like Shell.app.  there is
a app, portem, which i set up on a pty then connect the pty to the
environment with DPSAddFD().  the routine that gets executed when
data is ready from the pty places it in a scrolling text object.
it seems to work rather well.  the problem appears to be some sort of
buffer overrun of the data comming from the pty.  portem only prints
data in one routine and i verified that the data being received in the
overrun case isn't being transmitted from portem but the data received on
the pty is data from portem in from previous messages.

i have the pty set for non-blocking i/o.  i changed the pty params to
CRMOD|XTABS|ANYP|TANDEM (TANDEM was a test).  i figure the problem
is one of two things, either the number of bytes returned from read()
is bogus or there is some sort of buffer overrun over the pty.

i know others have done this.  recognize the problem?

--
 dennisg@kgw2.UUCP.WEC.COM  | Dennis P. Glatting
 ..!uunet!tron!kgw2!dennisg |
   What!  You want that subroutine to produce the
   same results twice?  This is a joke right?