cat reads the file until EOF, tmux checks the file size and then reads that amount.
Check what fstat() is returning for the size in cmd-load-buffer.c and see if it matches what you expect. On Wed, Feb 17, 2010 at 01:57:54AM +0100, Fulvio Ciriaco wrote: > Please would you explain it better to me? > a. does this work on openbsd? > b. (mkfifo fifo; echo ttttest > fifo; cat fifo) > gives the obvious result and no side effect, how is (tmux loadb fifo) > different? Also, these are quite busy machines, some have more recent > software and some older, and quite a lot of > applications use fifos without raising issues. > c. I will try to inject debugging code into the load-buffer responsible > functions, any good advice easing the work? > Fulvio > At Tue, 16 Feb 2010 20:25:11 +0000, > Nicholas Marriott wrote: > > > > Dunno. Perhaps fstat doesn't return a sane size for FIFOs. You'd have to add > > some debugging to find out what is going on. > > > > On Tue, Feb 16, 2010 at 09:06:05PM +0100, Fulvio Ciriaco wrote: > > > Hallo, > > > I tried the following on different OSes: > > > #tmux setb "echo 1" > > > #mkfifo test > > > #echo echo 2 > test & > > > #tmux loadb test > > > On NetBSD: does nothing > > > #tmux showb > > > echo 1 > > > On Linux: empties buffer and creates all sorts of problems > > > (broken pipe, killed shell) > > > tmux showb > > > > > > > > > My questions: > > > Why does it not work? > > > What does it do on linux? > > > Fulvio > > > > > > ------------------------------------------------------------------------------ > > > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > > > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > > > http://p.sf.net/sfu/solaris-dev2dev > > > _______________________________________________ > > > tmux-users mailing list > > > tmux-users@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users