Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c0ff2df286e94510928cc364a7bc29eaf23b9aa2
Ticket: 2001201fffffffffffffffffffffffffffffffff
Tcl_Exit() shouldn't call the full Tcl_Finalize() path
User & Date: ferrieux on 2009-05-17 05:21:58
Changes

  1. icomment:
    Hmm,  after looking a bit deeper at those finalization issues, I am wondering about the value of still calling TclFinalizeIOSubsystem in our new, streamlined Tcl_Exit.
    Indeed, TFIOS calls TclpFinalizePipes/Sockets, which on Windows delete associated event sources. But if background threads are themselves in the event loop with e.g. fileevent son pipes/sockets, aren't we pulling the rug from under their feet ?
    Moreover, TFIOS flushes channels which may block, so [exit] could hang...
    Also, it does this only for channels owned by the current thread's interps, which is not very clean.
    
    Bottom line: shouldn't we forget TFIOS in the exit path ? 
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"