.
D 2003-02-20T05:19:39
J assignee das
J cmimetype text/plain
J comment on\sMac\sOS\sX,\strying\sto\sread\se.g.\sfrom\sstdout\swhen\sit\sis\sa\s\npipe\swill\snot\sfail\sas\son\sother\splatforms\sbut\sblock\sforever\sin\s\nthe\srecv()\sin\sTcpInputProc().\n\nthis\shas\sbeen\sa\slong\sstanding\svery\sannoying\sbug\sthat\s\namong\sothers\sthings\sinterferes\swith\sthe\sworkings\sof\s'make\s\ntest',\se.g.\s"test\sio-32.1"\swill\shang\swhen\sit\stries\sto\s[read\s\nstdout]\sbecause\sstdout\sis\sa\spipe\swhen\sio.test\sis\srun\sfrom\s\ntests/all.tcl\n\nI\shave\snow\sfound\san\seffective\s&\ssimple\sworkaround\sthat\s\nAFAICT\sdoes\snot\shave\sany\snegative\simplications\son\sother\s\nunices:\n\nwhen\screating\sa\ssocket\schannel\sin\sTcl_MakeFileChannel(),\s\nthe\smode\sargument\scannot\sbe\spassed\sto\s\nTcl_MakeTcpClientChannel()\sas\snoted\sin\sthe\scomments.\nI've\snow\sadded\sa\sstatic\sMakeTcpClientChannelMode()\s\ntaking\sa\smode\sargument\sand\suse\sthis\sfrom\s\nTcl_MakeFileChannel().\nTcl_MakeTcpClientChannel()\ssimply\scalls\sthrough\sto\s\nMakeTcpClientChannelMode()\swith\sthe\sdefault\smode.\n\nso\sfor\swriteonly\sfiles\slike\sstdout,\sthe\schannel\swill\snow\sbe\s\nmarked\sas\swriteonly\seven\swhen\sit\sis\sbased\son\sa\ssocket\sfd,\s\nand\sthus\sreading\sfrom\sthe\schannel\swill\sfail\sbefore\sthe\srecv()\s\nis\sever\sattempted,\sthus\sworking\saround\sthe\smacosx\s\nproblem.\n\nc.f.\sattached\spatch\sfor\simplementation.
J foundin obsolete:\s8.4.1
J priority 5\sMedium
J resolution None
J status Open
J submitter das
J subsystem 27.\sChannel\sTypes
J title macosx:\sreading\sfrom\swrite-only\spipe\shangs
J type Bug
K 689835ffffffffffffffffffffffffffffffffff
U das
Z 53bde63a4cb6ebe66bf590417b8200a7