Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d338caae56f430c73c3d2f95b3b3f19fa47d7b64
Ticket: 218152ffffffffffffffffffffffffffffffffff
Interrupting an evaluation
User & Date: nobody on 2000-10-26 00:53:48
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. 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
    
  4. foundin changed to: "obsolete: 8.0.4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "Interrupting an evaluation"
  11. type changed to: "RFE"