.
D 2000-10-26T00:56:53
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s4356\sBug\nVersion:\s8.3\nSubmitDate:\s'2000-03-10'\nLastModified:\s'2000-04-04'\nSeverity:\sCRIT\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sWindows\s95\nOSVersion:\s8.3\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-04-04'\n\n\nName:\nKeshu\sZhang\n\nReproducibleScript:\nset\scomFd\s[open\sCOM2:\sRDWR]\nflush\scomFd\nfileevent\s$comFd\sreadable\s"clientRead"\n\nproc\sclientRead\s{}\s{\n\s\s\s\sfconfigure\s$comFd\s-blocking\sno\n\s\s\s\sset\sreadSize\s[gets\s$comFd\sreadBuf]\n\s\s\s\sif\s{$readSize==-1\s&&\s[eof\s$comFd]==1}\s{\n\s\s\s\s\s\s\sputs\s"the\spipe\sis\sclosed.\sThe\sprogram\shas\sto\sbe\sclosed\seither!"\n\s\s\s\s\s\s\sexit\n\s\s\s\s}\n}\n\nObservedBehavior:\nThe\sother\send\sof\sthe\sserial\scommunication\sin\sa\svxworks\smachine(unix\ssystem\salike).\sI\swant\sto\sreceive\sthe\smessage\ssent\sout\sfrom\sthe\smachine.\sBut\sI\scan\snot\sreceive\sanything!\n\nOn\sthe\sother\shand,\sthe\swindow's\shyperterminal\swhich\sconnectes\sCOM2\scan\sreceive\smessage\sfrom\sthe\svxworks\s\smachine.\sIt\sseems\sthat\sIt\sis\snot\sthe\sproblem\sof\sCOM2\sand\scommunication\spipe.\n\n\n\nAs\sprovided,\sthis\sscript\swouldn't\swork.\s\sThe\s$comFd\sneeds\sto\sbe\ndeclared\sglobal,\sor\spassed\sin\s(the\sbetter\schoice).\s\sSerial\scommunication\nshould\sindeed\sbe\sOK\sin\sboth\sdirections\s(OK\sfor\sothers).\s\n--\s04/04/2000\shobbs
J foundin obsolete:\s8.3
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title serial\sport\scommunication\scan\sonly\ssend\smessage\sout
J type Bug
K 218380ffffffffffffffffffffffffffffffffff
U nobody
Z a0fb5d61b04b14d752500961fe8e6369