Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 662ae3c3849ad37d1294c0dbb5b67b5e129e38eddd09c6ee4e8a43a4a10b2dc3
Ticket: 33b248619922b8781ab500cd778f177fedf3ebe8
zipfs becomes non-functional after first thread finalization
User & Date: apnadkarni on 2023-10-20 17:35:50
Changes

  1. icomment:
    Potential (simple) fix in branch bug-33b2486199.
    
    I'd prefer someone more knowledgeable in Tcl's IO/file system finalization to review.
    
    The fundamental problem is that there is currently no bookkeeping that I can see of which thread mounted the archive and which are still using it. Normally there would be a mount/unmount pair but since this Tcl library zip mount is implicit, it needs to be present till process exit (presumably).
    
    So I've simply added a check there for TclInExit. Not sure that is the right or complete solution but if no one has anything better to offer, I'll merge it in at some point.
    
  2. login: "apnadkarni"
  3. mimetype: "text/plain"