Artifacts Associated With Ticket 218152ffffffffff
Ticket change [d338caae56] (rid 123252) by nobody on 2000-10-26 00:53:48:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 2157 RFE Version: 8.0.4 SubmitDate: '1999-06-03' LastModified: '1999-09-18' Severity: LOW Status: Closed Submitter: techsupp ChangedBy: hobbs OS: Solaris OSVersion: 2.5, 2.6, 7 Machine: Other FixedDate: '2000-10-25' ClosedDate: '1999-09-18' Name: Anthony Mallet CustomShell: Redefined Tcl_ExecuteByteCode DesiredBehavior: Would be great if there were a possibility to interrupt a byte-code evaluation in a non-event-driven application. Imagine that you start to execute the following code : while { 1 } { } If you hit ctrl-C, this kills the interpreter. If you have intalled a signal handler, the recommended way to take any action within the handler is to AsyncMark an asynchronous event, and let tcl proceed with it when it comes back to a safe state. But this does not work in my case since the infinite loop never makes a call to 'update' or anything that deals with events. Today, the workaround I use is to compile a modified version of Tcl_ExecuteByteCode that checks a global flag before executing every instruction, and stops evaluating whenever this flags becomes true (the flag is set in a signal handler). This seems to be what we already have Tcl_CreateTrace (command tracing) for. -- 09/18/1999 hobbs - foundin initialized to: "obsolete: 8.0.4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "Interrupting an evaluation"
- type initialized to: "RFE"
Ticket change [9334d11919] (rid 105780) by welch on 2000-10-26 08:15:56:
- closedate changed to: "2000-10-26T01:15:56"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [cd4f5287fd] (rid 95866) by dgp on 2001-04-16 23:35:24:
- foundin changed to: "None"
- status changed to: "Open"
- subsystem changed to: "None"
Ticket change [5affdf81be] (rid 118242) by dgp on 2001-04-16 23:35:49:
- closedate changed to: "2001-04-16T16:35:49"
- closer changed to: "dgp"
- status changed to: "Closed"
- subsystem changed to: "47. Bytecode Compiler"