Skip to content
Tcl Source Code Artifact [d531d32324]
Login

Artifact [d531d32324]

Artifact d531d323245a2ecbf2c49c32a7e89e50af496db4:

Ticket change [d531d32324] - Closed ticket [3541646fffffffff|3541646fff]: <i>Don&#39;t panic on triggerPipe overrun</i> plus 6 other changes by dkf on 2013-09-24 12:09:06.
D 2013-09-24T12:09:06.477
J closedate 2456560.00632497
J closer dkf
J comment As\sdetected\sby\sVikki\son\sthread\r\n\r\nhttps://groups.google.com/group/comp.lang.tcl/tree/browse_frm/thread/b08745216b7b4932/cca074d98284b134?hl=en&rnum=1&_done=%2Fgroup%2Fcomp.lang.tcl%2Fbrowse_frm%2Fthread%2Fb08745216b7b4932%2Fd0d28843efbd42a7%3Fhl%3Den%26#doc_cca074d98284b134\r\n\r\nwhen\sa\swrite\son\sthe\snotifier's\striggerPipe\sreturns\sEAGAIN\s(because\sthe\sstream\sof\snotifier\sconfiguration\supdates\sis\stoo\sfast\sfor\sthe\sthread\sto\sdrain\sthe\spipe),\swe\snow\spanic,\sstarting\sfrom\sthis\scommit:\r\n\r\nFile\sunix/tclUnixNotfy.c\r\n2009-12-16\s23:25:59\s-\spart\sof\scheckin\s[e52afe7fa4]\son\sbranch\strunk\s-\sFix\sgcc\swarning:\signoring\sreturn\svalue\sof\s‘write’,\sdeclared\swith\sattribute\swarn_unused_result\sCONSTify\sfunctions\sTclpGetUserHome\sand\sTclSetPreInitScript\s(TIP\s#27)\s(user:\snijtmans\s)\s[annotate]\r\n\r\nThis\stoo\sheavy\shanded.\sAs\sexplained\sin\sthe\sabove\sthread,\sin\sthis\ssituation\sthe\snotifier\swill\sbe\sconstantly\swoken\sup,\sso\slosing\sone\sof\sthese\s"wake-ups"\sis\snot\san\sissue\s(one\swake\sup\scan\sserve\sseveral\supdates).\r\n\r\nNote\sthat\sthis\sonly\sapplies\sto\sthe\s\\0\ssignal\s(wake-up).\r\nFor\sthe\s'q'\ssignal\s(for\snotifier\sfinalization),\sthings\sare\strickier:\r\n\s\s\s-\sblocking\smode\sis\sstill\sout\sof\sthe\squestion\ssince\swe're\sholding\sthe\snotifierMutex.\sIn\sthis\ssituation\sit\swould\slead\sto\sa\sdeadlock.\r\n\s\s\s-\slosing\sthe\s'q'\sis\sproblematic\ssince\swe'd\snever\send\sthe\sfinalization\r\nSo\sI\swould\sadvise\sa\sswitch\sto\sa\slockless\sscheme\sfor\sthe\s'q'\s(which\sis\sokay\ssince\sit\sis\sa\smonotonic\sflag).\r\n\r\nAssigning\sto\sJan\sas\sauthor\sof\sthe\soffending\scommit\s;-)
J login dkf
J mimetype text/plain
J severity Critical
J status Closed
K 3541646fffffffffffffffffffffffffffffffff
U dkf
Z 889572dfc525d6b4d87205b270028c1e