> This is not something that can be done this way in Unix, so a program would
> not expect it to work the way it is written above, so in the Unix world this
> is not a useful feature to have.
Try this:
[EMAIL PROTECTED]:~ (0)$ mkfifo foo
[EMAIL PROTECTED]:~ (0)$ while /bin/true; do echo foo > foo; echo X;
done
X
X
X
bash: foo: Interrupted system call
[EMAIL PROTECTED]:~ (1)$
This was produced by running:
[EMAIL PROTECTED]:~ (0)$ cat foo
foo
[EMAIL PROTECTED]:~ (0)$ cat foo
foo
[EMAIL PROTECTED]:~ (0)$ cat foo
foo
Remember, cat waits until it receives an EOF.