Skip to content
Tcl Source Code Artifact [5070fd4ceb]
Login

Artifact [5070fd4ceb]

Artifact 5070fd4ceb20739f0b51f4d658c7a91208159aed:

Ticket change [5070fd4ceb] - Ticket [1322866fffffffff|1322866fff] <i>TclFinalizeIOSubsystem closes zero descriptor</i> status still Open with 4 other changes by dgp on 2005-12-19 22:56:06.
D 2005-12-19T22:56:06
J icomment Logged\sIn:\sYES\s\nuser_id=80530\n\n\n"interpreter\sclosing\sfile\ndescriptors\snot\sopened\sby\nitself"\sis\sa\s(underdocumented?)\nfeature\sof\sTcl_MakeFileChannel().\nThat's\sa\svery\sold\sinterface\npredating\sthe\sexistence\sof\sa\nTcl_Finalize()\sdistinct\sand\nseparate\sfrom\sTcl_Exit(),\sIIRC.\nThere\sare\sexisting\sprograms\nthat\srely\son\sT_MFC\sacting\nthis\sway.\n\nIt's\snot\sso\sclear\sthat\swhen\nTcl\screates\sdefault\sstandard\nchannels\sthat\sit\sought\sto\sbe\ncalling\sT_MFC\sto\sdo\sit,\sgiven\nthis\sfeature.\s\sNow\sthat\sexistence\nof\sTcl_Finalize()\ssuggests\sTcl\nsupports\sfinalizing\sin\san\sapp\nthat\swill\scontinue\sto\srun,\sit\ndoesn't\sseem\sto\sbe\sa\sgood\sthing\nthat\sTcl\sforces\sclosed\sthe\sfile\ndescriptors\scorresponding\sto\sits\nstandard\schannels.\n\nAnd\sin\sthis\sparticular\sreport,\nthere's\sthe\sadditional\swrinkle\nthat\sin\sthis\scase\sfile\sdescriptor\n0\sisn't\seven\sthe\sright\sthing\sto\nattach\sto\sthe\s"stdin"\schannel.\n\nSince\sthis\sreport\sis\sabout\san\n"embedded\sinterpreter"\sI\sassume\nthe\sapp\sin\squestion\sis\sa\sC\sprogram,\nand\sthe\sworkaround\sought\sto\sbe\sto\ninclude\swhatever\sTcl_SetStdChannel()\ncalls\sare\srequired\sto\sforce\sTcl\sto\nuse\ssome\sharmless\salternatives\sfor\nits\sstd*\schannels,\sand\snot\sthe\n0,\s1,\s2\sfile\sdescriptors\sbeing\sused\nin\sother\sways\sby\sthe\sprogram.\n
J login dgp
J mimetype text/plain
J username dgp
K 1322866fffffffffffffffffffffffffffffffff
U dgp
Z fff79d20b023fbda17f63d5d74d913bf