Overview
| Artifact ID: | d338caae56f430c73c3d2f95b3b3f19fa47d7b64 |
|---|---|
| Ticket: | 218152ffffffffffffffffffffffffffffffffff
Interrupting an evaluation |
| User & Date: | nobody on 2000-10-26 00:53:48 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "obsolete: 8.0.4"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to: "Interrupting an evaluation"
- type changed to: "RFE"