Tcl Source Code

Artifact [4fea181e24]
Login

Artifact 4fea181e24e859144d53334703c640097536fce1:

Ticket change [4fea181e24] - Ticket [2413550fff] Avoid double-open of serial ports on Windows status still Open with 8 other changes by oehhar 2014-01-30 11:04:54.
D 2014-01-30T11:04:54.823
J assignee aku
J closer nobody
J comment Currently,\sopening\sa\sserial\sport\son\sWindows\sinvolves\sa\sdouble-open:\s(1)\sopen\sgenerically\s(2)\scheck\sthe\shandle\sfor\sserialness\s(3)\sreopen\swith\sOVERLAPPED\sflag\sif\sserial.\r\n\r\nThis\scauses\strouble\sin\ssome\ssetups\swhere\sthe\sopen/close\s(and\sits\stiming)\sis\snot\stransparent\sto\sthe\sunderlying\sdriver,\slike\sbluetooth\sRFCOMM\sprofile.\sSee\s\r\n\r\nhttp://groups.google.fr/group/comp.lang.tcl/tree/browse_frm/thread/9f2f29db7b5864fd/fd6d04dbc15d8575?rnum=1&_done=%2Fgroup%2Fcomp.lang.tcl%2Fbrowse_frm%2Fthread%2F9f2f29db7b5864fd%2Fdd17ccbb0019ed90%3F#doc_fd6d04dbc15d8575\r\n\r\nfor\sa\sconcrete\sexample.\r\n\r\nA\ssimple\sand\sefficient\ssolution\sis\sto\suse\sa\s"name\shint"\sto\sdetect\sCOM\sports\sby\stheir\sfilename\sinstead\sof\sresorting\sto\sa\ssyscall\sto\sdetect\sserialness\safter\sthe\sfact.\r\n\r\nRolf\sShroedter\shas\ssuggested\sthat\sat\sleast\sthe\stwo\sfollowing\spatterns\sshould\sbe\sdetected:\r\n\r\n\s\s\s\s\s\sCOM[0-9]:?\r\n\s\s\s\s\s\s\\\\.\\COM[0-9]+:?\r\n\r\nIt\salso\sturns\sout\sthat\sthe\sfirst\sone\sshould\sbe\sapplied\sto\sthe\s[file\stail],\ssince\s\\foo\\bar\\COM4\sis\salso\sa\svalid\sserial\sport\sreference\sin\sWindows.\r\n\r\nHowever,\swe\sbelieve\sthat\sa\sgood\sstrategy\sshould\sbe\sto\smake\sonly\sa\sreasonable\seffort\sin\sthat\sdirection,\sleaving\stricky\scases\shandled\sby\sthe\scurrent\sbehavior;\sthis\sin\sorder\snot\sto\sspoil\sthe\sperformance\sof\s[open]\sfor\snon-serials.\r\n\r\nA\spatch\swill\sbe\suploaded\sshortly\sto\ssupport\sjust\sthe\sabove\stwo\spatterns.
J icomment Patch\sapplied\sfor\stcl\s8.5\sin\sbranch\s[84307fe13f]
J login oehhar
J mimetype text/x-fossil-wiki
J severity Minor
J username oehhar
K 2413550fffffffffffffffffffffffffffffffff
U oehhar
Z cd8aa515c46864e3b5e700b10d07fea5