Skip to content
Tcl Source Code Artifact [25058f2017]
Login

Artifact [25058f2017]

Artifact 25058f2017f8550c16aa3205635cc32dfd527671:

Ticket change [25058f2017] - New ticket [711232ffffffffff|711232ffff] <i>Darwin realpath() and threads problem</i>. by vasiljevic on 2003-03-28 08:42:15.
D 2003-03-28T08:42:15
J assignee das
J cmimetype text/plain
J comment The\sTcl8.4.x\suses\sthe\sOS-call\srealpath()\sto\sfigure-out\sthe\nreal\sphysical\spath\sof\sthe\sfile\son\sthe\sfilesystem,\sstripped\s\nof\sall\s"./",\s"../",\sconstructs,\ssymlinks\sand\salike.\s\n\nThis\sfunction\son\sDarwin\suses\schdir/fchdir\sinternally\nwhich\schanges\sthe\sprocess\scurrent\sworking\sdirectory\nfor\seach\sinvocation.\sIt\sis\scalled\sfor\sjust\sabout\n*every*\spath\syou\spass\sto\sthe\sTcl\slibrary!\sOf\scourse,\s\nthis\sdefeats\s*any*\smultithreading\scode.\sThere\sis\sno\nsingle\spoint\slike\s[cd]\scommand\swhich\smingles\swith\sthe\ncurrent\sdir;\s*all*\spath\sarithmetics\seventually\scall\sinto\nthe\srealpath()\sand\sit\swill\sswap\sthe\scurrent\sdir\sunder\nyour\sfeet.\sThe\sman\spage\ssays\snothing\sabout\sthis\nimportant\sside-effect,\sthough.\sThis\sis\snot\sthe\scase\sin\s\nSolaris\sand/or\sLinux\sOS.\sIt\sappears\sto\sme\sthat\sit\sonly\nhappens\son\sMac\sOSX\s(aka\sDarwin).\s\n\nFirst\scorrective\smeasure\sis\sto\sdefine\sNO_REALPATH\nvariable\son\scompilation\stime.\sOf\scourse,\sin\sone\sof\smy\s\nprevious\sthreads.\nBetter\syet\sis\sto\sfix\sDarwin\srealpath()\sto\sbehave\sbetter.
J foundin obsolete:\s8.4.2
J priority 9\sImmediate
J resolution None
J status Open
J submitter vasiljevic
J subsystem 36.\sPathname\sManagement
J title Darwin\srealpath()\sand\sthreads\sproblem
J type Bug
K 711232ffffffffffffffffffffffffffffffffff
U vasiljevic
Z 32e2da87c9ddd2a1007f354687724e10