Re: [splice PATCH 3/3] splice: added support for pipe-to-pipesplice()

From: Max Kellermann
Date: Thu Apr 30 2009 - 09:51:59 EST


On 2009/04/30 15:35, Vegard Nossum <vegard.nossum@xxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/