.
D 2002-04-18T10:15:38
J assignee vincentdarley
J cmimetype text/plain
J comment In\stclIOUtil.c,\sthere\sis\sextensive\slogic\sto\sload\s\nshared\slibs\sfrom\sVFS\s-\seven\screating\sa\stemp\scopy\s(see\s\nTcl_FSLoadFile).\s\sLoading\sappears\sto\swork\sfine\s-\sthe\s\nTclVFS\sextension\sdoes\snot\soverride\sload,\sand\sthings\s\nare\sok\swith\sTclKit\sand\sScripted\sDocuments.\n\nBut\sunloading\sdoes\snot\sclean\sup\ssuch\sa\stemp\sfile.\s\s\nAfter\slong\sterm\suse,\slots\sof\s"tclXXXXX"\sfiles\scan\s\naccumulate\sin\s/tmp\s(on\sLinux).\n\nThis\scan\sonly\sbe\stested\sfrom\sa\sVFS-mounted\sFS,\s\nbecause\snormal\sloading\ssurely\sloads\sas\sis,\sno\scopy\s\nmade\sat\sall.\s\sAn\sexample\sis\sto\srun\stclkit\swith\sone\sof\s\nthe\sscripted\sdocs\sthat\scontain\sa\sbinary\sloaded\s\nextension\s-\ssuch\sas\sin\shttp://www.equi4.com/pub/dok/.\n\nDesired\sbehavior:\stemp\scopy\sis\sdeleted\safter\suse.\n\nIn\sfact,\son\sUnix\ssystems,\sone\scan\sprobably\sdelete\s\nright\safter\sloading\s-\sthe\stemp\scopy\sdoes\snot\sneed\sto\s\nexist\swhen\sthe\sshared\slibrary\sis\sin\suse.\s\sThis\shas\sas\s\nmajor\sbenefit\sthat\saborts/crashes\sdo\snot\sleave\s\ndangling\sfiles.\n\nOn\sWindows,\sthe\sfile\scannot\sbe\sdeleted\swhile\sin\suse.\s\s\nThe\sleast\swould\sbe\sto\sdelete\son\sexit\s(as\sthe\sunload\s\nlogic\sin\stclIOUtil.c\sappears\sto\sbe\sintended).\s\sIf\s\ncleanup\seven\swith\saborts\sare\sdesired,\sthen\sthe\s\nWindows\sversion\smay\sneed\sto\sdo\sspecial\scalls\sto\s\nregister\sthe\sfiles\sfor\scleanup\son\srestart\sof\sWindows\s\n(not\ssure\swhat\sthe\sAPI\sis,\sor\swhere,\sbut\sit\sexists).\n\nWindows\smay\sbe\sharder\s-\salso\sbecause\sI'm\snot\ssure\sa\s\nDLL\sshould\sbe\sunloaded\sby\sTcl\s(the\susual\sreasons\scome\s\nto\smind:\sC++\scleanup\shandling\smay\snot\shave\soccurred,\s\nand\san\satexit\scall\sinto\sthe\slib\smay\sbe\spending).\s\sIf\s\nall\selse\sfails,\sthen\sperhaps\sthe\sonly\sway\sout\sis\sto\s\nreuse\sa\sfixed\sset\sof\sfile\snames\sfor\screating\sthe\stemp\s\ncopies\souf\sof\sVFS\s(tcl001.dll.\stcl002.dll,\setc)\s-\sso\s\nthat\sat\sleast\snames\sare\sre-used\s(and\slong\sterm\suse\sdo\s\nnot\slead\sto\san\sunbounded\snumber\sof\scopies).\s\sOr\sTcl\s\ncould\sclean\sup\sits\sset\sof\snames\son\sstartup\s-\smultiple\s\ninvocations\sare\sno\sproblem,\sif\sthe\sdll\sis\sstill\sis\s\nuse\sthen\sthe\sdelete\sfails\sand\scan\sbe\signored.\n\nI'll\sbe\shappy\sto\shelp\stest\sthe\sdifferent\sscenario's,\s\nbut\sI\sdon't\soversee\sall\sissues\sand\sthe\score\scode\swell\s\nenough\sto\sbe\sable\sto\scode\sthe\ssolutions.\s\sBesides,\s\nmaybe\sit's\salmost\sthere,\sjust\sa\sfew\stweaks\saway\sfrom\s\nworking\sjust\sfine\son\sUnix\sand\sWindows.\n
J foundin obsolete:\s8.4a5
J priority 5\sMedium
J resolution None
J status Open
J submitter jcw
J subsystem 37.\sFile\sSystem
J title cleanup\safter\sload\sfrom\sVFS
J type Bug
K 545579ffffffffffffffffffffffffffffffffff
U jcw
Z 00f0024e293968a5021cae5c31842e56