Skip to content
Tcl Source Code History Of Ticket 790399ffffffffff
Login

History Of Ticket 790399ffffffffff

Artifacts Associated With Ticket 790399ffffffffff

  1. Ticket change [4334e5dd89] (rid 116515) by yahalom on 2003-08-18 07:12:06:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      platform: windows 2000/Linux red hat
      tcl version: 8.4.3 with thread support
      
      when sending cd to a thread all threads changes the path.
      
      package require Thread
      set thread1 [thread::create]
      puts "current: [pwd]"
      thread::send $thread1 [list cd [file join c:/ tmp]]
      puts "after: [pwd]"
      
      result:
      current: C:/
      after: C:/tmp
      
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "yahalom"
    9. subsystem initialized to: "16. Commands A-H"
    10. title initialized to: "cd command is not thread safe"
    11. type initialized to: "Bug"
  2. Ticket change [85b8438058] (rid 131363) by dkf on 2003-08-18 16:49:23:

    1. assignee changed to: "vincentdarley"
    2. foundin changed to: "obsolete: 8.4.3"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      Seems to me that this is just the way things are since the
      concept of a current directory is defined by the OS as being
      a process-level concept.  Which means that it is not a good
      idea to use [cd] at all in threaded Tcl scripts; good thing
      it is not actually necessary at all unless you have very
      crufty external programs...
      
      Do you agree, Vince?  If so, close this bug.  :^)
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. username: "dkf"
  3. Ticket change [75bdbf0db1] (rid 105438) by vincentdarley on 2003-08-18 22:15:21:

    1. closedate changed to: "2003-08-18T15:15:21"
    2. closer changed to: "vincentdarley"
    3. icomment:
      Logged In: YES 
      user_id=32170
      
      I agree.
      
      
      
    4. login: "vincentdarley"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "vincentdarley"
  4. Ticket change [12cb2e41d7] (rid 124111) by hobbs on 2003-08-18 22:20:10:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      It is correct that cd is a process-wide item, but there were
      some thread-safety issues when trying to cd from different
      threads simultaneously in 8.4.3 that were corrected for
      8.4.4.  In any case, the result received is correct.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"