|
2006-03-15
| ||
| 07:26 | • Closed ticket [468511ffff]: Cannot use tcl with pseudo ttys plus 7 other cha... artifact: ab87f9d176 user: andreas_kupries | |
|
2001-10-09
| ||
| 22:24 | • Ticket [468511ffff]: 4 changes artifact: 69ddab58d7 user: andreas_kupries | |
|
2001-10-08
| ||
| 16:01 | • Ticket [468511ffff]: 6 changes artifact: e1b9f5c8b0 user: vincentdarley | |
|
2001-10-07
| ||
| 18:38 | • Ticket [468511ffff]: 4 changes artifact: 7339cafd84 user: dkf | |
|
2001-10-06
| ||
| 11:17 | • New ticket [468511ffff]. artifact: 50a2153ac4 user: nobody | |
Cannot use tcl with pseudo ttys
Closed / Rejected468511ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 21 years ago
Descriptionplain2001-10-06 11:17:42
I was trying to test some software that communciates via rs232 between two computers. I wrote a send and receive test program in tcl and opened pseudo ttys to emulate the link so I could test the software on one computer. On tcl opening the slave tty the master tty gets an I/O error. No further reads on that channel return data. I don't know if this is related to the zero length write problem or not. As far as I know I do not have threads compiled in.
dkfplain2001-10-07 18:38:07
Logged In: YES user_id=79902 What operating system is being used? On some OSes (AIX?) pseudo-ttys are implemented as STREAMS devices and they have an interpretation of what to do with a zero-length write that is not particularly helpful (the other end gets a zero-length read, which is often taken as an end-of-file. Apparently.) Which wouldn't be a problem if it wasn't for the fact that Tcl has something of a tendency to generate zero-length writes of its own accord (no, I do not know why; I'm not a channel-system guru.) IIRC, there is discussion of what to do about this in another bug report whose number I do not recall right now. :^(
vincentdarleyplain2001-10-08 16:01:20
Logged In: YES user_id=32170 Reassigned to Andreas; this is a channel issue, not a filesystem issue.
andreas_kupriesplain2001-10-09 22:24:23
Logged In: YES user_id=75003 The sf item about 'zero-lengtn write's is #465765 and can be found at http://sourceforge.net/tracker/? func=detail&aid=465765&group_id=10894&atid=110894 Is it necessary to use pseudo-tty's ? Note that "Expect" contains a channel driver explicitly for pseudo-tty's. IOW there are differences to tty's. How about this: Use one computer with two serial interfaces and connect these two interfaces as if they are on different machines. Now let the applications under test use one of the interfaces each.
andreas_kupriesplain2006-03-15 07:26:25
Logged In: YES user_id=75003 Not enough data, no changes over a long time.
Log in (anonymous is fine) to add a comment.