Skip to content
Tcl Source Code Artifact [7649a5b980]
Login

Artifact [7649a5b980]

Artifact 7649a5b980d482ef4685469633fa09449e59a477:

Ticket change [7649a5b980] - Ticket [923072ffffffffff|923072ffff] <i>atfork patch</i> status still Open with 4 other changes by das on 2006-05-27 12:26:27.
D 2006-05-27T12:26:27
J icomment \n\nFile\sAdded\s-\s179459:\stclMacOSXNotify-atfork_HEAD.patch\n\nLogged\sIn:\sYES\s\nuser_id=90580\n\nattached\spatch\sto\sHEAD\sthat\simplements\sa\spthread_atfork()\nhandler\sfor\sthe\sMac\sOS\sX\sspecific\snotifier\sin\ntclMacOSXNotify.c\s(used\swhen\sconfigured\swith\n--enable-corefoundation),\sthis\sallows\sunthreaded\sCF\stcl\sto\n[fork]\swithout\shanging\sat\snotifier\sfinalization:\sthe\shandler\nrecreates\sCoreFoundation\sstate\sand\snotifier\sthread\sin\sthe\schild.\nNote\sthat\spthread_atfork()\sis\savailable\sstarting\swith\sOS\sX\n10.4\sTiger\sonly,\sso\stcl\sbuilt\son\searlier\sreleases\swill\snot\ninclude\sthis\sfix.\n\nBecause\svfork()\sis\sused\sby\sthe\score\s\son\sOS\sX,\sthe\satfork\nhandler\sdoes\snot\srun\sfor\s[exec]\sand\s[open\s|],\sso\score\ncommands\sare\snot\saffected;\sthe\shandler\sonly\sgets\scalled\swhen\nan\sextension/embedder\scalls\sfork(),\ssuch\sas\sTclX's\s[fork].\n\nOn\sTiger,\sthis\smakes\s[fork]\ssafe\sto\suse\sfrom\stcl\swith\n--disable-threads\sirrespective\sof\scorefoundation\nconfiguration\soption;\sbut\sof\scourse\sit\sdoesn't\sfix\sthe\ngeneric\sstale\slocked\smutex\sissue\swith\sthreaded\stcl\sand\sfork\nalso\sdiscussed\shere,\sso\sthreaded\sCF\stcl\scan\sstill\sdeadlock\nin\sthe\schild\sif\sany\slocks\sare\sheld\sin\sthe\sparent\sat\sthe\stime\nof\sthe\s[fork].\n\npatch\scommitted\sto\sHEAD\sand\score-8-4-branch\n
J login das
J mimetype text/plain
J username das
K 923072ffffffffffffffffffffffffffffffffff
U das
Z f9029ccd781b3fb1351738d67fc75f21