lkml.org 
[lkml]   [1996]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: new behavior of named pipes
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 \




\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.067 / U:1.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site