Artifacts Associated With Ticket 790399ffffffffffffffffffffffffffffffffff
Ticket change [4334e5dd89] (rid 116515) by yahalom on 2003-08-18 07:12:06:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- 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
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "yahalom"
- subsystem initialized to: "16. Commands A-H"
- title initialized to: "cd command is not thread safe"
- type initialized to: "Bug"
Ticket change [85b8438058] (rid 131363) by dkf on 2003-08-18 16:49:23:
- assignee changed to: "vincentdarley"
- foundin changed to: "obsolete: 8.4.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. :^)
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- username: "dkf"
Ticket change [75bdbf0db1] (rid 105438) by vincentdarley on 2003-08-18 22:15:21:
- closedate changed to: "2003-08-18T15:15:21"
- closer changed to: "vincentdarley"
- icomment:
Logged In: YES user_id=32170 I agree.
- login: "vincentdarley"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "vincentdarley"
Ticket change [12cb2e41d7] (rid 124111) by hobbs on 2003-08-18 22:20:10:
- 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.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment: