Skip to content
Tcl Source Code Artifact [3be4e55e98]
Login

Artifact [3be4e55e98]

Artifact 3be4e55e9839ad4fa08d15fdc7a8c6758d95e057:

Ticket change [3be4e55e98] - Ticket [923072ffffffffff|923072ffff] <i>atfork patch</i> status still Open with 5 other changes by vasiljevic on 2004-12-18 01:50:20.
D 2004-12-18T01:50:20
J icomment Logged\sIn:\sYES\s\nuser_id=95086\n\nSome\smore\sthoughts...\s\n\s\nThis\spatch\sactually\sattempts\sto\ssolve\s2\sproblems\s\nat\sa\stime:\s\n\s\n1.\sAssure\sall\sTcl\smutexes\sare\sin\sthe\ssane\sstate\safter\s\nthe\sfork,\sso\sthat\sthe\sTcl\slibrary\sin\sthe\schild\sprocess\sis\s\nin\sthe\ssane\sstate\sas\swell.\s\n\s\n2.\sReinitialize\s(actually,\sre-start)\sthe\snotifier\sthread\s\nin\sthe\schild,\ssince\sit\sis\snot\sreplicated\sby\sthe\sfork\scall\s\nbut\sis/(will\sbe)\sneeded\sby\sthe\sTcl\slib\sin\sthe\schild.\s\s\n\s\nOnly\sthe\sstep\s2.\sis\sthe\sactual\sfix\sof\sthe\sinitial\sproblem\s\nas\sdescribed\sin\sthe\sreferences\sto\sbug-reports\sabove.\s\nThis\sain't\sthat\sdifficult\sto\ssolve\sby\spthread_atfork\s\s\nmechanics\sand\sshould\snot\sintroduce\sany\sunwanted\s\nside\seffects.\sAt\sleast\sI\scan't\sthink\sof\sany\sat\sthis\spoint.\s\n\s\nThe\sstep\s1.\sattempts\sto\ssolve\sthe\smore\sdifficult\sproblem\s\nof\sthe\sstate\sof\sinternal\smutexes\sused\sby\sthe\sTcl\slibrary\s\nafter\sthe\sfork.\sThis\sis\sfar\smore\scomplex\sthan\sit\slooks\slike\s\non\sthe\sfirst\sglance\s(deadlock\sembrace\sissues)...\s\n
J login vasiljevic
J mimetype text/plain
J subsystem 49.\sThreading
J username vasiljevic
K 923072ffffffffffffffffffffffffffffffffff
U vasiljevic
Z 0f587eb6f67c8e69b4ca3eb730565796