From: <tcl...@tc...> - 2014-04-28 20:16:17
|
Repository: http://core.tcl.tk/tcl Change Notification For [Inadequate fcopy operation] Ticket http://core.tcl.tk/tcl/tktview?name=1350564fffffffffffffffffffffffffffffffff Artifact http://core.tcl.tk/tcl/tinfo?name=d4b09244215f4b0c4656002b65e89ea5d434e31a On 2014-04-28T20:10:44 By ferrieux Changed Fields closedate: 2456776.34079354 closer: ferrieux icomment: > BTW, can I multiplex a single source into > multiple destinations with fcopy (as tee(1) > would do)? Should I be able to? Not "out of the box", because async fcopy is a simple-minded "byte noria", that essentially spends its life alternating a readable and a writable fileevent (in C), guaranteeing no accumulation in memory. The noria requires to be alone fiddling with fileevents in that direction, otherwise there would be a race on the read side. If instead you want to "fork the flow", simply do a single fcopy towards a synthetic channel (refchan) that duplicates. login: ferrieux |