[patch] fbsplash
Paul Fox
pgf at brightstareng.com
Fri Apr 4 20:54:40 UTC 2008
denys wrote:
> On Friday 04 April 2008 11:27, Michele Sanges wrote:
> > Il giorno ven, 28/03/2008 alle 09.06 -0400, Paul Fox ha scritto:
> > > is the proper solution simply to open it twice, once for reading,
> > > and once for writing? this guarantees a writer (which will never
> > > write anything).
> >
> > Following the suggestion of Paul, now I open the fifo twice to use the
> > opportunity to make the read blocking.
>
> This seems to be a good idea. I am committing the attached patch
> to svn. Saves ~70 bytes.
btw, i've done this same thing for years in shell scripts that are
using a named pipe. something like:
process 1:
while :; do sleep 1; date >myfifo; done
process 2:
cat <>myfifo
off the top of my head i can't remember exactly what i've used
this trick for, but i know i have. (i'm sure, because it's the
only use i've ever made of the "<>" shell syntax. :-)
paul
=---------------------
paul fox, pgf at brightstareng.com
More information about the busybox
mailing list