<i>Closing tcl pipes prevents windows threads from starting up</i> status still Pending with 3 other changes
by
.
D 2017-04-05T19:38:25.364
J icomment Unfortunately\sneither\sthe\soriginal\sproposed\spatch\snor\smy\srewritten\sbranch\sdo\snot\scompletely\ssolve\sthe\sissue\s(despite\sit\sis\sindeed\sbetter\swith\sboth\sfixes);\r\nI\scould\sreproduce\sagain\sa\ssuspend\sstate\sof\s[9d75181]\swith\soriginal\spath\sand\s\r\na\sdead-lock\sinside\skernel\swith\smy\sbranch\s(I've\sa\snewer\sversion\sin-between\swithout\ssuspend/resume\susing\sSignalObjectAndWait\sinstead,\sthat\sis\sstill\smore\sbetter\sbut\snevertheless\serror-prone).\r\n\r\nI\ssuspect\sthis\sgoing\sto\sthe\sundefined\sbehavior\sresp.\srather\sunexpected\shere,\sbecause\sunder\swindows\sa\sthread\swaiting\son\sa\ssynchronization\sobject\scan\sbe\smomentarily\sremoved\sfrom\sthe\swait\sstate\sby\sa\skernel-mode\sAPC,\sand\sthen\sreturned\sto\sthe\swait\sstate\safter\sthe\sAPC\sis\scomplete\s(per\sdesign).\r\n\r\nI\sthink\sthe\sonly\sway\swould\sbe\sto\srewrite\scurrent\shandling\scompletely\susing\seither\sasync-IO\s(overlapped\sReadFileEx/WriteFileEx)\sor\susing\ssimple\sthread\spool\sfor\sthe\spending\sreader/writer,\sthat\sfirstly\swill\sbecome\sreusable\sfunctionality\s(like\sget\spending\sor\screate),\ssecondly\scan\sbe\ssane\sremoved\safter\sreach\sof\ssome\stimeout\sresp.\sby\ssystem\sshutdown\s(e.\sg.\swithin\shandler\screated\swith\sTcl_CreateExitHandler).\r\n\r\nI\shave\sexperience\swith\swindows\sasync-IO\s(and\siocp),\sso\scan\srewrite\sit\swith\sit.\r\nI\swill\stake\sa\slook\son\swinPipe,\setc.\sand\sthink\sabout\sa\slittle\sbit...
J login sebres
J mimetype text/plain
K 8bd13f07bde6fb0631f27927e36461fdefe8ca95
U sebres
Z 9a696134546c812ea7cf28b1fda6aa59