Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3e4cd5453967f919e12d69262fcad3e8e22935f9
Ticket: 512214ffffffffffffffffffffffffffffffffff
allow skipping of constraint init code
User & Date: kenstir on 2002-02-02 21:13:53
Changes

  1. assignee changed to: "melissachawla"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Some of the tcltest constraint initialization code is 
    nontrivial.  A caller may want to avoid running the 
    initialization code.  In my case, running the 
    constraint initialization code hangs my application.
    
    This patch uses [info exists] to test a constraint 
    first, and runs the code to set the constraint if it 
    doesn't already exist.
    
    This patch is incomplete; it only handles the (stdio) 
    constraint.  If you agree with this style of test-
    first constraint setting, I can patch the other 
    constraints and submit them.
    
    My example: I have a client app which opens an 
    exclusive connection to a server.  When this app tries 
    to spawn itself (while setting the stdio constraint), 
    it deadlocks waiting for the exclusive connection to 
    the server.  Whether this is good app design is 
    outside the scope of this patch!
    
    Most of this patch is whitespace-only change.
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "kenstir"
  9. subsystem changed to: "34. tcltest Package"
  10. title changed to: "allow skipping of constraint init code"
  11. type changed to: "Patch"