Re: new behavior of named pipes

Ronald Wahl (Ronald.Wahl@informatik.tu-chemnitz.de)
Tue, 2 Apr 1996 23:36:52 +0200 (MET DST)


On Tue, 2 Apr 1996, Ronald Wahl wrote:

>
> Hi,
>
> I noticed a change in the code of named pipes in 1.3.81. Now xconsole
> doesn't work properly if it reads from a named pipe. xconsole uses
> XtAddInput (which uses select internally) to wait for data from the pipe.
> A "tail -f" process writes data to the pipe. But nothing happens.
> "strace -p" shows that xconsole hangs in a select call. Is there a patch
> for xconsole available that work with kernels >=1.3.81? I wont patch the
> kernel to use the SUNOS behavior if there is a better solution.

I found the problem by myself. I piped the output of "tail -f" through
a awk script which closes the fifo after every line to flush the output.

ron

--
\ Ronald Wahl --- rwa@informatik.tu-chemnitz.de   \
 \ WWW: http://www.tu-chemnitz.de/~row             \
  \ Talk: rwa@goliath.csn.tu-chemnitz.de            \
   \ PGP key available by finger to my email address \