Menu

#2127 Tk hangs on <KeyPress> Events when executed in command pipe

obsolete: 8.5a4
open
69. Events (88)
8
2006-10-07
2006-10-07
EL
No

Key press events make Tk hung and not responding
anymore on windows. This happens when a Tclsh/Wish is
executed in a command pipeline (via [open "|"]).

It can be easily reproduced in a Tclsh on windows (e.g.
in ActiveTcl's Tclsh84 or Tclsh85):

% set backend [open "| [info nameofexe]" r+]
% fconfigure $backend -buffering line
% puts $backend "package re Tk"

Then, click in the appearing wish main window and press
any key. The window hangs forever and the only way out
there is by

% puts $backend "exit"

in the Tclsh console from where the pipe was opened

I don't know about other platforms, just tried it out
on Windows.

Discussion

  • EL

    EL - 2006-10-07
    • milestone: --> obsolete: 8.5a4
    • priority: 5 --> 8
     
  • Nobody/Anonymous

    Logged In: NO

    Is this similar to bug 1779265?

     
  • EL

    EL - 2008-04-05

    Logged In: YES
    user_id=1345135
    Originator: YES

    It could be, yes. But this has happened all the time and Tk must be killed to resolve it.

     
MongoDB Logo MongoDB