Skip to content
Tcl Source Code Artifact [ef620f54bb]
Login

Artifact [ef620f54bb]

Artifact ef620f54bb0c5d2788f435670a600fd9d2b24cfd:

Ticket change [ef620f54bb] - Ticket [3545365fffffffff|3545365fff] <i>Crash in io-29.33b (no implicit flush of nonblocking on exit</i> status still Open with 4 other changes by ferrieux on 2012-07-24 23:59:59.
D 2012-07-24T23:59:59
J icomment Twylite\sidentified\sthe\smissing\ssignalling\sof\sthe\sstopWriter\sevent\s!\nUpdate:\n\nIndex:\swin/tclWinPipe.c\n===================================================================\n---\swin/tclWinPipe.c\n+++\swin/tclWinPipe.c\n@@\s-1878,10\s+1878,17\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)\s{\n+\s\s\s\s\s\s\s\s\s\s\s\s\s\s\spipePtr->toWrite=0;\n+\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sCloseHandle\s(((WinFile\s*)pipePtr->writeFile)->handle);\n+\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sSetEvent(pipePtr->stopWriter);\n+\s\s\s\s\s\s\s\s\s\s\s}\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@@\s-3140,8\s+3147,9\s@@\n\s\n\n\s/*\n\s\s*\sLocal\sVariables:\n\s\s*\smode:\sc\n\s\s*\sc-basic-offset:\s4\n+\s*\stab-width:\s8\n\s\s*\sfill-column:\s78\n\s\s*\sEnd:\n\s\s*/\n\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 3545365fffffffffffffffffffffffffffffffff
U ferrieux
Z d444c1830b947f1f0070b9d83dae6460