occur after gets, then eof check. (Gerold Jury)
+2001-12-12 Jeff Hobbs <jeffh@ActiveState.com>
+
+ * tkcon.tcl (EvalSocketEvent): changed EvalSocketClosed to only
+ occur after gets, then eof check. (Gerold Jury)
+
2001-11-14 Jeff Hobbs <jeffh@ActiveState.com>
* tkcon.tcl: added catch around file type call
proc ::tkcon::EvalSocketEvent {} {
variable PRIV
- if {[eof $PRIV(app)] || ([gets $PRIV(app) line] == -1)} {
- EvalSocketClosed
+ if {[gets $PRIV(app) line] == -1} {
+ if {[eof $PRIV(app)]} {
+ EvalSocketClosed
+ }
return
}
puts $line