|
2001-07-13
| ||
| 00:18 | • Closed ticket [219269ffff]: Wrong channel kind for stdin/out/err when pipes/sock... artifact: 53f98d3f53 user: andreas_kupries | |
|
2001-04-10
| ||
| 06:13 | • Ticket [219269ffff]: 4 changes artifact: 56b33fd37a user: andreas_kupries | |
| 06:13 | • Add attachment 219146.0.diff to ticket [219269ffff] artifact: 79a460b7ab user: andreas_kupries | |
| 06:13 | • Ticket [219269ffff] Wrong channel kind for stdin/out/err when pipes/sockets/seri... artifact: d705de6a37 user: andreas_kupries | |
| 03:43 | • Ticket [219269ffff]: 5 changes artifact: 5b20dd4341 user: andreas_kupries | |
| 02:23 | • Ticket [219269ffff]: 5 changes artifact: 133ff52887 user: andreas_kupries | |
|
2001-04-05
| ||
| 08:20 | • Ticket [219269ffff]: 1 change artifact: 8e3fc078b9 user: dgp | |
|
2000-10-26
| ||
| 05:09 | • New ticket [219269ffff]. artifact: 495999f8e2 user: nobody | |
Wrong channel kind for stdin/out/err when pipes/sockets/seri
Closed / Duplicate219269ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2000-10-26 05:09:40
OriginalBugID: 1370 Bug Version: 8.0.4 SubmitDate: '1999-03-02' LastModified: '1999-10-29' Severity: SER Status: UnAssn Submitter: pat ChangedBy: hobbs OS: Solaris Machine: Other FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Name: Alexandre FERRIEUX ReproducibleScript: fconfigure stdin # does *not* show the proper socket options when it's a socket # same when it's a serial device fileevent stdin readable MyProc # fails when it's a pipe on Windows, *even* in 8.1 ObservedBehavior: The channel type of stdin/out/err are not computed from trhe underlying file descriptor. They are just hypothetized to be console/regular. DesiredBehavior: A few ioctls should be issued on stdin/out/err, and also on the result of [open] (because of [open /dev/fd/N] on Solaris and Linux, which can yield *any* descriptor), to decipher their nature, and attach whatever specific behavior would be given to their kind if created from Tcl (fconfigure options for sockets and serial; reader thread for pipes on 8.1/Windows).
dgp Ticket [219269ffff]: 1 change
[History diff]2001-04-05 08:20:12
andreas_kupriesplain2001-04-10 02:23:15
Logged In: YES user_id=75003 See also Bug #219146. This is fixed for Win*, but not unixoid systems. Are the necessary ioctls portable or standardized ?
andreas_kupriesplain2001-04-10 03:43:23
Logged In: YES user_id=75003 After looking through manpages and tcl sources it seems that most of the required capabilities are available through "isatty" and "fstat" (+ some standardized macros). Note that both "Tcl_MakeFileChannel" and "TclpOpenFileChannel" have to be modified, in the same way.
andreas_kupriesplain2001-04-10 06:13:54
Logged In: YES user_id=75003 A first draft of a patch to fix this. In need of testcases now.
andreas_kupriesplain2001-04-10 06:13:55
File Added - 5172: 219146.0.diff
andreas_kupriesplain2001-07-13 00:18:06
Logged In: YES user_id=75003 Fixed for 8.4a3. See #219137 and its duplicates.
Log in (anonymous is fine) to add a comment.
Attachments:
- 219146.0.diff [download] added by andreas_kupries on 2001-04-10 06:13:54. [details]