Skip to content
Tcl Source Code Artifact [96a790b880]
Login

Artifact [96a790b880]

Artifact 96a790b880036d691cdfc0bbd364c639c87018dc:

Ticket change [96a790b880] - Ticket [1941063fffffffff|1941063fff] <i>test exec-9.7 fails randomly</i> status still Open with 4 other changes by ferrieux on 2008-04-13 16:06:28.
D 2008-04-13T16:06:28
J icomment Logged\sIn:\sYES\s\nuser_id=496139\nOriginator:\sNO\n\nDonal,\stwo\squestions:\n\n(1)\sScary.\sWhat\sabout\sprio\s9\s?\n\n(2)Isn't\sthe\stest\scase\sitself\srisking\sa\srace\s?\sIndeed,\sit\sspawns\sin\sparallel\stwo\sinstances\sof\n\n\s\s\s\ssh\s-c\s{echo\serror\smsg\s>&2;sleep\s1}\n\nIn\sthis\ssetup,\sdescriptor\s2\sof\sboth\schildren\sis\sthe\serr\spipe\sto\sTcl.\nOf\scourse,\sthose\sare\ssmall\swrites\swhich\sare\ssupposed\sto\sbe\satomic;\sbut\sin\sprinciple\snothing\sprevents\sthe\sOS\sfrom\sdoing\sa\stask\sswitch\sin\sthe\smiddle.\sThe\sresult\sseen\sin\s$msg\scould\sthen\sbe\sany\s"crossover"\slike\s"errorerror\smsmsg\ng\n"\nI\swould\shave\sfound\smuch\ssafer\sto\shave\s&\schild\sdoing\n\s\s\s\s\secho\serror\smsg\s>&2;sleep\s1\nand\sthe\sother\sone\sdoing\n\s\s\s\s\ssleep\s1;echo\serror\smsg\s>&2\n\nOK,\snow\sinvestigating,\slooking\sfor\sthe\sorder\sof\sEOF\sand\swaitpid\sin\sthe\schild-reaping\sprocess.\nHas\sthis\schanged\srecently\s?\n\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 1941063fffffffffffffffffffffffffffffffff
U ferrieux
Z 00d6f9d74ad0ca226097567570703169