Skip to content
Tcl Source Code Artifact [fba554f66e]
Login

Artifact [fba554f66e]

Artifact fba554f66e59f39a9d59cb3364f8c64703ef5943:

Ticket change [fba554f66e] - Ticket [923072ffffffffff|923072ffff] <i>atfork patch</i> status still Open with 4 other changes by vasiljevic on 2004-12-18 01:30:24.
D 2004-12-18T01:30:24
J icomment Logged\sIn:\sYES\s\nuser_id=95086\n\nJust\sa\slife-sing..\sI'm\sstill\slooking\sinto\sthis...\n\nAparently,\sthe\s*main*\sproblem\sis\swith\sthe\sTcl\snotifier\nthread\sand\sits\shandling\sin\sthe\schild\sprocess,\si.e.\sthe\sfact\nthat\schild\shas\snot\s\nhave\saccess\sto\sthe\snotifier\sthread\sbecause\sit\sis\ssimply\snot\nthere\nafter\sthe\sfork.\s\n\nAttempting\sto\slock\sall\smutexes\sin\smaster\sand\sthen\srelease\sthem\nagain\safter\sthe\sfork\sin\sboth\smaster\sand\schild\sprocesses,\splus\s\nre-initializing\sthe\snotifier\ssubsystem\s(effectively\nre-creating\sthe\nnotifier\sthread)\sin\sthe\schild\sprocess\sis\sa\slogical\sway\sof\nsolving\s\nthis\spuzzle\s*only*\sif\syou\shave\scontrol\sof\sthe\slock\shierarchy...\n\nIn\sthe\snature\sof\sTcl\slib,\sthis\sis\snot\sguaranteed,\shence\sit\nwill\slead\spossibly\s(and\svery\sprobably)\sto\svarious\ndeadlock-embrace\ssituations.\sAlso,\sthe\spatch\sas\sprovided,\nwill\sdestroy\sthe\sreference\scount\sof\sthe\snotifier\sthread\nwhich\sis\snot\sgood\sbut\sthis\sis\sa\sminor\sissue\swhich\scan\sbe\nfixed.\sI\ssee\sno\sproblem\sin\sthis.\nI\sdo\ssee\sproblems\sin\swholesale\slocking\sof\sTcl\smutexes\sthough.\nThis\sis\sthe\smain\sproblem\sand\swe\shave\sto\ssee\sif\sthis\sstep\nis\sreally\sneeded\sand\swhat\swould\sbe\sthe\sconsequence\sof\snot\ndoing\sit.\s\sI'm\safraid\ssome\shard\scompromises\swould\sbe\srequired\nand\sthose\smay/will\shave\sconsequences\sand\slead\sto\ssome\nspecial-cases\swhich\swould\sbe\spretty\sunelegant,\sdesign-wise.\n\nWell,\sthis\sall\srequires\smore\sthinking...\s\n
J login vasiljevic
J mimetype text/plain
J username vasiljevic
K 923072ffffffffffffffffffffffffffffffffff
U vasiljevic
Z 6ac30a2c7e08a0b1a7bdbc67c3d90310