Ok thanks. My only concern is sharing the same fd for stdin and stdout - what happens if the copy-pipe command prints something?
On Tue, Mar 19, 2013 at 03:26:26PM -0500, Chris Johnsen wrote: > (Sorry for the crummy Subject on the previous message; corrected here.) > > On Tue, Mar 19, 2013 at 2:15 PM, Nicholas Marriott > <nicholas.marri...@gmail.com> wrote: > > Thanks. Does this work though? Where do you enable the bufferevent for > > writes? > > > > Or does libevent do that for us, I forget and no time to check... > > Yes, libevent automatically includes EV_WRITE (1.4 in > bufferevent_new; 2.0 in bufferevent_init_common, called from > bufferevent_new, via bufferevent_socket_new, in 2.0), but it is > probably a good idea to be explicit about it since it is not > obvious. > > The changes do "work for me" (against libevent 2.0.21), but I am not > terribly familiar with libevent, so there may have been something > I mucked up. I did test it with some fairly large selections (e.g. > the ~0.5MB of output from "jot 100000"). > > -- > Chris ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users