<i>Don't panic on triggerPipe overrun</i> status still Open with 4 other changes
by
.
D 2012-07-11T05:32:45
J icomment No,\sthe\snotifier\sis\snot\slosing\swake-ups\swhen\sthe\spipe\sis\sfull\s!\n\nThe\spurpose\sof\sthe\s\\0\ssend\sover\sthe\striggerPipe\sis\sto\skick\sthe\snotifier\sout\sof\sthe\scurrent\sselect(),\srecompute\sthe\sselect\smasks\saccording\sto\sthe\snew\sstate\sof\sall\sfileevents\sin\sall\sthreads,\sand\sback\sto\sblocking\sselect()\swith\sthe\snew\sstate.\nHence,\sa\ssingle\s\\0\scan\sserve\smany\supdates.\sWhen\sthe\spipe\sis\sfull\sof\s4096\swake-ups,\sthe\s4097th\sis\sa\swaste\sanyway.\n\nAs\smentioned\searlier,\sonly\sthe\s'q'\sis\sproblematic.\sMy\ssuggestion\sfor\sthis\sis\sto\sreplace\sthe\s'q'\swith\ssimply\ssetting\sa\sglobal\sflag\spleaseNotifierDie,\sand\ssending\sa\sregular\s\\0\sover\sthe\spipe,\swith\sthe\ssame\swaking\seffect.\sThe\sflag,\schecked\sin\sthe\sloop\sat\sthe\ssame\splace\swhere\sthe\s'q'\sis\ssought,\swould\sbreak\sout\sof\sthe\sloop\sand\sterminate\sthe\snotifier.\sIn\sthe\scontext\sof\sthe\soriginal\sposter,\sthis\swould\seven\syield\sa\sfaster\sexit\ssince\sthis\swould\sbypass\sthe\s4096\senqueued\s(useless)\supdates.\n\nComments\s?\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 3541646fffffffffffffffffffffffffffffffff
U ferrieux
Z c65163babc12b830b3c8466645b97d2d