Skip to content
Tcl Source Code Artifact [89838fe67e]
Login

Artifact [89838fe67e]

Artifact 89838fe67e80707c7537ed8c344a8c62c9ef25cd:

Ticket change [89838fe67e] - New ticket [217811ffffffffff|217811ffff] <i>exec does not work from script processed by the Tcl Interpre</i>. by nobody on 2000-10-26 00:43:59.
D 2000-10-26T00:43:59
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1312\sBug\nVersion:\s8.0p2\nSubmitDate:\s'1999-02-26'\nLastModified:\s'1999-09-20'\nSeverity:\sCRIT\nStatus:\sClosed\nSubmitter:\swelch\nChangedBy:\shobbs\nRelatedBugIDs:\s1342\s942\nOS:\sOther\nOSVersion:\sSCO\sUnixware\s7.0.1\nMachine:\sNA\nFixedDate:\s'2000-10-25'\nClosedDate:\s'1999-09-20'\n\n\nName:\n\nBill\sSnapper\n\n\n\nCustomShell:\n\nsee\spatch\sabove\n\n\n\nReproducibleScript:\n\nMy\sapplication\suses\sTcl\sfor\sthe\sconfiguration\slanguage\sas\swell\sas\sfor\n\npolicy\sscripting.\s\sThe\sapplication\slinks\sin\sthe\sTcl\sinterpreter\sand\sadds\n\nsome\sconfiguration\scommands.\n\n\n\nThe\sapplication\sis\smulti-threaded\sthough\sTcl\sis\snot\sexpected\sto\n\nbe\smulti-threaded.\s\sTcl\sis\sonly\sinvoked\son\sa\ssingle\sthread.\n\n\n\nIf\san\s"exec"\scommand\sis\sin\sthe\sconfiguration\sscript\sit\swill\n\nfail\sregardless\sof\swhat\sis\strying\sto\sbe\sexec'd.\s\sI\straced\sthis\n\nto\stclUnixPipe.c,\sthe\sfunction\s"TclpCreateProcess".\s\sThis\sfunction\n\nuses\s"vfork".\s\sOn\sSCO\s(I'm\susing\sUnixware\s7.0.1)\sthe\sfunction\n\n"vfork"\swill\snot\swork\sif\sthere\sis\smore\sthan\sone\sLWP\sin\sthe\n\ncurrent\sprocess.\n\n\n\nI\shave\sbuilt\smy\sown\sinterpreter\susing\s"fork"\sinstead\sof\s"vfork"\n\nand\sthis\sworked.\s\sFYI,\sthe\sproblem\sis\sin\sthe\slatest\sbeta\sof\n\nTcl\sthat's\ssupposed\sto\sbe\sthread-safe\sas\swell.\n\n\n\n\n\n\n\n\n\nObservedBehavior:\n\nexec\sdoes\snot\swork...\n\n\n\n\n\n\n\n\n\nDesiredBehavior:\n\nexec\swould\swork...\s;-)\n\n\n\n\n\n\n\n\n\nPatch:\n\n***\stclUnixPipe.c.origWed\sNov\s\s5\s16:58:52\s1997\n\n---\stclUnixPipe.cSun\sFeb\s21\s22:19:36\s1999\n\n***************\n\n***\s355,361\s****\n\n---\s355,365\s----\n\n\s\s\s\s\s\s}\n\n\s\s\n\n\s\s\s\s\s\sjoinThisError\s=\s(errorFile\s==\soutputFile);\n\n+\s#if\s0\n\n\s\s\s\s\s\spid\s=\svfork();\n\n+\s#else\n\n+\s\s\s\s\spid\s=\sfork();\n\n+\s#endif\n\n\s\s\s\s\s\sif\s(pid\s==\s0)\s{\n\n\s\sfd\s=\sGetFd(errPipeOut);\n\n\s\s\n\n\n\n\n\n\n\n\n\nPatchFiles:\n\ntclUnixPipe.c\n\n\n\n\n\n\n\n\n\n
J foundin obsolete:\s8.0p2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title exec\sdoes\snot\swork\sfrom\sscript\sprocessed\sby\sthe\sTcl\sInterpre
J type Bug
K 217811ffffffffffffffffffffffffffffffffff
U nobody
Z ed8b6cd9bf03c234de35dbc7b68c09c0