<i>exec with pipes and fileevents leaks ~2Mb everytime</i> status still Open with 4 other changes
by
.
D 2008-05-07T17:06:30
J icomment Logged\sIn:\sYES\s\nuser_id=496139\nOriginator:\sNO\n\nMark,\n\nWhile\sI'm\svery\shappy\sfor\syou\ssince\syou\scan\sproceed,\sthere's\sone\sthing\sI\sdon't\squite\sgrasp\shere.\nYou\smentioned\sinstrumenting\stclWinPipe,\swhich\sto\smy\sknowledge\simplements\sthe\score\sTcl\s"command\spipelines",\sthat\sis,\sthe\schannel\stype\sof\s[open\s|cmd\sr+].\sThis\stype\suses\scomplicated\smachinery\sincluding\sancillary\sthreads\sand\sWindows\sEvents\sto\simplement\sfileevents,\sbecause\sup\sto\sWin9x/Me\sit\swas\sthe\sonly\sway.\n\nNow\syour\soffending\sscript\sinstead\suses\sTclX's\s[pipe]\scommand,\swhich\syields\stwo\schannels\sof\stype\s"file",\swhich\sin\sWindows\sencapsulates\sonly\sthe\svanilla\sfile\shandle\sof\sWin32.\sAs\sit\sturns\sout,\sthose\svanilla\shandles\sbecame\swaitable\swith\sWinNT\s(Thanks\sto\sJeff\sand\sDavid\sfor\sdigging\sout\sthese\shistorical\sfacts),\sso\snow\sTclX's\s[pipe]\sare\sfileevent-ready,\swhich\swas\snot\sthe\scase\swith\spre-NT\sWindows\s(of\scourse\sunix\shas\sbeen\sOK\sall\sthe\stime\s;-).\n\nGiven\sthis\sdichotomy,\sI\sdon't\sunderstand\swhere\stclWinPipe,\sits\sextra\sthreads,\sand\stheir\sbrutal\stermination,\scome\sinto\splay...\s\sAny\sidea\s?\n\n\n\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 1958930fffffffffffffffffffffffffffffffff
U ferrieux
Z 0f4d423f9497c75c1be1547aa30c1193