<i>Crash in io-29.33b (no implicit flush of nonblocking on exit</i> status still Open with 4 other changes
by
.
D 2012-07-24T22:45:47
J icomment As\sfor\sthe\sTclpClose:\sit\sincludes\sa\sfree\sof\sa\sstrucure,\sso\sinstead\sof\smoving\sthe\sTclpClose\scall\sup,\sI'd\ssuggest\sa\sdirect\slow-level\sCloseHandle,\sleaving\sthe\sfinal\sTclpClose\swhere\sit\sis.\sA\sdouble\sCloseHandle\scan\scomplain,\sbut\snot\scrash:\n\n\nIndex:\swin/tclWinPipe.c\n===================================================================\n---\swin/tclWinPipe.c\n+++\swin/tclWinPipe.c\n@@\s-1878,10\s+1878,13\s@@\n\s\s\s\s\s\s\s\s\s\s\s\s\s*\sWait\sfor\sthe\swriter\sthread\sto\sfinish\sthe\scurrent\sbuffer,\sthen\n\s\s\s\s\s\s\s\s\s\s\s\s\s*\sterminate\sthe\sthread\sand\sclose\sthe\shandles.\sIf\sthe\schannel\sis\n\s\s\s\s\s\s\s\s\s\s\s\s\s*\snonblocking,\sthere\sshould\sbe\sno\spending\swrite\soperations.\n\s\s\s\s\s\s\s\s\s\s\s\s\s*/\n\s\n+\s\s\s\s\s\s\s\s\s\s\s/*\sALEX\s-\sugly\shack\sto\scheck\sinter-thread\sio\scancellation\s*/\n+\s\s\s\s\s\s\s\s\s\s\sif\s(pipePtr->flags\s&\sPIPE_ASYNC)\sCloseHandle\s(((WinFile\s*)pipePtr->writeFile)->handle);\n+\n\s\s\s\s\s\s\s\s\s\s\s\sWaitForSingleObject(pipePtr->writable,\sINFINITE);\n\s\n\s\s\s\s\s\s\s\s\s\s\s\s/*\n\s\s\s\s\s\s\s\s\s\s\s\s\s*\sThe\sthread\smay\salready\shave\sclosed\son\sit's\sown.\sCheck\sits\sexit\n\s\s\s\s\s\s\s\s\s\s\s\s\s*\scode.\n\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 3545365fffffffffffffffffffffffffffffffff
U ferrieux
Z 5f653ced24b902dffa4324314d828cd3