Messages in this thread | | | Date | Thu, 30 Apr 2009 15:50:16 +0200 | From | Max Kellermann <> | Subject | Re: [splice PATCH 3/3] splice: added support for pipe-to-pipe splice() |
| |
On 2009/04/30 15:35, Vegard Nossum <vegard.nossum@gmail.com> wrote: > What happens if you splice two pipes, in separate threads, to each > other? :-)
As a demonstration, here's an experiment with older technology, when pipes were still made of wood (pre-splice):
mkfifo /tmp/foo cat /tmp/foo >/tmp/foo
You may launch the real thing now with a simple
echo Hello World >tmp/foo
Warning: with only one pipe, you're likely to bend the pipe too far, and it may break (SIGPIPE).
Max
| |