Skip to content
Tcl Source Code Artifact [4f8206141b]
Login

Artifact [4f8206141b]

Artifact 4f8206141ba4266b271b11be49e46c40b62f572a:

Ticket change [4f8206141b] - New ticket [3486554fffffffff|3486554fff] <i>FD_SET macros must be used</i>. by ferrieux on 2012-02-10 14:55:28.
D 2012-02-10T14:55:28
J assignee das
J cmimetype text/plain
J comment This\sreport\sis\shere\sto\sdocument\sa\spast\sfix,\sbut\sis\snonetheless\simportant\sas\sa\sreference\sfor\speople\sencountering\sthe\sassociated\sbugs\sin\solder\sversions,\ssince\sthese\sbugs\shave\snot\sbeen\sreported\shere.\n\nPrior\sto\sCheck-in\s[e496f9ef50]\sby\sDaniel\sA.\sSteffen,\s\s2009-04-10\s20:46:21,\n\n*\sunix/tclUnixChan.c:\sTclUnixWaitForFile():\suse\sFD_*\smacros\s*\smacosx/tclMacOSXNotify.c:to\smanipulate\sselect\smasks\s(Cassoff).\sBug\s1960647\n\nthere\swere\sdangerously\snon-portable\sshift\smanipulations\sin\sTclUnixWaitForFile().\sThese\shave\sbeen\sproperly\sreplaced\sby\sthe\sclean\sFD_SET\set\sal.\smacros\sby\sDaniel.\n\nHere\sis\sthe\sbehavior,\sobserved\sindependently\sby\sme\son\s8.4.13\sand\sby\sevilotto\son\s8.4.12,\sboth\son\sx84_64\sLinux:\n\nA\sfileevent\sreadable\son\sa\shigh\sdescriptor\s(above\s32)\srepeatedly\sfires,\sbut\sthe\s[read]s\sdone\son\sit\sdon't\sconsume\sany\sbytes,\sleading\sto\sa\sbusyloop\sknown\sas\s"select\sbomb".\sThe\sfailing\sbitshifts\smisdirected\sthe\ssetting\sof\sthe\sselect()\sbits.\n\nAttached\sscripts,\scourtesy\sof\sevilotto,\sexpose\sthe\sbehavior.\nAlso,\sthe\sproblem\sis\slikely\sto\soccur\sunder\sload\swhen\susing\s[package\srequire\shttpd]\sasynchronously\s(many\ssimultaneous\srequests\smust\sbe\sactive).
J foundin obsolete:\s8.4.19
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter ferrieux
J subsystem 01.\sNotifier
J title FD_SET\smacros\smust\sbe\sused
J type Bug
K 3486554fffffffffffffffffffffffffffffffff
U ferrieux
Z bfd7c8441336bc7ed07e44781a4e8342