lkml.org 
[lkml]   [2009]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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


\
 
 \ /
  Last update: 2009-04-30 15:57    [W:0.037 / U:0.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site