Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9a84f7e33794b0eee5af2873311431d8903f467007f7f90a8a622814894724e0
Ticket: 6a61b9d61492a249009d231f362c7a8589552565
fileevent command missing "exception" as acceptable watchMask
User & Date: davygrvy on 2026-07-05 19:43:22
Changes

  1. icomment:
    From the Tcl_EventProc queued in from the prior Tcl_EventSetupProc of my channel driver's event source, when it calls Tcl_NotifyChannel(..,TCL_EXCEPTION), what happens?
    
    Absolutely nothing because [fileevent] is missing the "exception" event type.  I create the channel with TCL_EXCEPTION as a valid mask:
    
    ```c
        return Tcl_CreateChannel(&AgpibChannelType, channelName,
            (ClientData)infoPtr, TCL_EXCEPTION);
    ```
    
    int mask (in)
    An OR-ed combination of TCL_READABLE, TCL_WRITABLE and TCL_EXCEPTION that indicates events that have occurred on this channel.
    
  2. login: "davygrvy"
  3. mimetype: "text/x-markdown"