Skip to content
Tcl Source Code Artifact [dc396dc1eb]
Login

Artifact [dc396dc1eb]

Artifact dc396dc1eb10075bc12fd9100f298f5ffb4f59c6:

Ticket change [dc396dc1eb] - Ticket [8bd13f07bde6fb06|8bd13f07bd] <i>Closing tcl pipes prevents windows threads from starting up</i> status still Pending with 3 other changes by sebres on 2017-05-03 19:11:22.
D 2017-05-03T19:11:22.695
J icomment So\sbug\s"R6016"\soccurs\scurrently\son\sexit\sof\stclsh\sif\ssome\spipe-workers\sare\sstill\salive\s(in\sshutdown\sprocess),\sbut\sthe\smain-thread\sexited\sbefore\sit\shappens.\r\n\r\nIn\sthis\scase\s8.6/trunk\s(with\sfix-1997007)\smay\sbe\saffected\salso,\sif\ssomeone\suses\stcl.dll\swith\sown\sor\srewritten\sTclMain,\swhere\sexit\soccurs\sfaster).\r\nJust\scurrently\snot\sreproduceable,\sbecause\stcl\sfinalization\sis\sa\slittle\sbit\sslower\sthere.\r\nSo\sJan,\syou\swere\sright\swith\sthe\s"vague\sfears"\s:)\r\n\r\nThe\spossible\ssolution\s(that\swould\sbe\stoo\scomplex\sjust\sfor\sthis\scase):\r\n-\screate\spool\sof\spipe-workers\s(for\sthe\scase\sif\spipe-worker\sreceives\sPTI_STATE_STOP\ssignal\sand\sshutdown\sasynchronously);\r\n-\sin\scase\sthat\sthe\spipe-thread\sis\snot\sdown,\sadd\sworker\sto\sthis\spool;\r\n-\screate\sthread\sexit-handler\s(on\smain\sthread)\sthat\swill\sdefinitively\sshutdown\sall\spending\sworkers\s(waiting\sfor\sdown\sand/or\sterminate\spipe-worker\sif\sit\sstill\salive).\r\n\r\nAnother\spossible\ssolution:\scalling\sTerminateProcess\simplicit\sbefore\sExitProcess.\r\nIt\sworks,\sbut\sI\sdon't\slike\sit\salso.\r\n\r\nThinking\sabout\sbetter\shandling\sto\srealize\sproper\sshutdown\sof\sworkers\s(in\sexit\scase).\r\nWiP
J login sebres
J mimetype text/plain
K 8bd13f07bde6fb0631f27927e36461fdefe8ca95
U sebres
Z 1b7dbb860ea4860a2fabec8dedb5e985