|
2001-09-12
| ||
| 23:47 | • Ticket [219408ffff] fileevent on stdin not working status still Closed with ... artifact: 05aa526137 user: andreas_kupries | |
| 23:42 | • Closed ticket [219408ffff]. artifact: f51ed9d7f6 user: dgp | |
| 23:31 | • Ticket [219408ffff]: 4 changes artifact: 39415d5eba user: andreas_kupries | |
| 23:22 | • Ticket [219408ffff]: 4 changes artifact: 291c802019 user: dgp | |
| 22:53 | • Ticket [219408ffff]: 4 changes artifact: abd9fe80ac user: dgp | |
| 00:51 | • Ticket [219408ffff]: 5 changes artifact: d007196e95 user: andreas_kupries | |
|
2001-08-25
| ||
| 01:33 | • Ticket [219408ffff]: 4 changes artifact: 1894395d26 user: andreas_kupries | |
|
2001-08-24
| ||
| 04:50 | • Ticket [219408ffff]: 1 change artifact: 8023a4a1e8 user: andreas_kupries | |
|
2001-04-03
| ||
| 06:17 | • Ticket [219408ffff]: 1 change artifact: 89c062a63b user: dgp | |
|
2000-11-15
| ||
| 22:13 | • Ticket [219408ffff]: 1 change artifact: 2f1fa892c0 user: dkf | |
|
2000-10-26
| ||
| 05:12 | • New ticket [219408ffff]. artifact: 5a13703671 user: nobody | |
fileevent on stdin not working
Closed / Works For Me219408ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2000-10-26 05:12:33
OriginalBugID: 6334 Bug
Version: 8.3.2
SubmitDate: '2000-10-02'
LastModified: '2000-10-25'
Severity: SER
Status: UnAssn
Submitter: techsupp
OS: AIX
Machine: 2 x 64 bit CPUs with 200.00 MHz each (Arch: Power PC/630,Power P
FixedDate: '2000-10-25'
ClosedDate: '2000-10-25'
Name:
Michael Bowen
Extensions:
None, well wish 8.3.2 if that counts...
CustomShell:
None
ReproducibleScript:
#!/usr/bin/wish
# Just execute this script, then enter some text and hit enter..
proc handleIn {} {
set f [gets stdin]
puts "got \"$f\"";
if {[string compare $f "Q"]==0} {
exit;
}
}
fileevent stdin readable handleIn;
fconfigure stdin -blocking 0 -buffering line;
puts [info tclversion]
ObservedBehavior:
The handleIn proc is never called.. It works with earlier version of tcl, and also works with 8.3.2 under linux, but not on aix 4.3.2.
DesiredBehavior:
I would expect the handleIn proc to be called, and the text you enetered to be repeated. When you enter a "Q"
the script should terminate.
dkf Ticket [219408ffff]: 1 change
[History diff]2000-11-15 22:13:10
dgp Ticket [219408ffff]: 1 change
[History diff]2001-04-03 06:17:46
andreas_kupries Ticket [219408ffff]: 1 change
[History diff]2001-08-24 04:50:43
andreas_kupriesplain2001-08-25 01:33:11
Logged In: YES user_id=75003 Does 8.4a3 still have this problem ? Note: I have not AIX system available to test.
andreas_kupriesplain2001-09-12 00:51:14
Logged In: YES user_id=75003 I am assigning this to Don now, remembering from a the comments in a different item that he has access to an AIX system for testing. ... When he is able to go to work again, that is ...
dgpplain2001-09-12 22:53:49
Logged In: YES user_id=80530 Me and my big mouth.
dgpplain2001-09-12 23:22:01
Logged In: YES user_id=80530 I note that the script indicates evaluation by wish, but I see no Tk commands. Is wish necessary to demo the problem, or will I see it using tclsh?
andreas_kupriesplain2001-09-12 23:31:38
Logged In: YES
user_id=75003
Hm. I don't know.
Maybe he just wants the eventloop from wish.
Oh,
Michael Bowen = <[email protected]>
so we can ask him.
dgpplain2001-09-12 23:42:17
Logged In: YES user_id=80530 I just built tclsh and wish version 8.3.2 on an AIX 4.3 system using gcc 2.95.2. (--disable-shared) I was able to run the contributed script, and it behaved properly as described in wish and in tclsh (after adding [vwait forever]). I did not attempt other Tcl/Tk versions. If this report has mis-identified the Tcl/Tk version where failure was observed, please re-file. Closing this as "Works for me". I do note that the handleIn proc in the contributed script is not very robust. With stdin configured as non-blocking, there should probably be a [catch] around [gets] with checks for [eof] and [fblocked].
andreas_kupriesplain2001-09-12 23:47:52
Logged In: YES user_id=75003 Ok, I will inform Michael of this.
Log in (anonymous is fine) to add a comment.