Re: [gentoo-user] how does a pipe work? Which process wait for which one, or they don't actually wait each other?

2006-06-14 Thread Boyd Stephen Smith Jr.
On Wednesday 14 June 2006 08:12, 张韡武 <[EMAIL PROTECTED]> wrote about '[gentoo-user] how does a pipe work? Which process wait for which one, or they don't actually wait each other?': > How does pipe actually work? I mean, when there is a pipe like this: > $ appA |

Re: [gentoo-user] how does a pipe work? Which process wait for which one, or they don't actually wait each other?

2006-06-14 Thread Uwe Thiem
On 14 June 2006 14:12, 张韡武 wrote: > Hello. This might be OT but I am pretty interested in this and being > unlucky not able to find a real in-depth explanation of pipe on the > Internet. > > How does pipe actually work? I mean, when there is a pipe like this: > $ appA | appB > What happen if appA p

Re: [gentoo-user] how does a pipe work? Which process wait for which one, or they don't actually wait each other?

2006-06-14 Thread Devon Miller
It's mode 2. When appB stops reading, appA will continue writing until the pipe is full (about 4k I believe) at which time appA will block in a write. dcm On 6/14/06, 张�|武 <[EMAIL PROTECTED]> wrote: Hello. This might be OT but I am pretty interested in this and being unlucky not able to find a

[gentoo-user] how does a pipe work? Which process wait for which one, or they don't actually wait each other?

2006-06-14 Thread 张韡武
Hello. This might be OT but I am pretty interested in this and being unlucky not able to find a real in-depth explanation of pipe on the Internet. How does pipe actually work? I mean, when there is a pipe like this: $ appA | appB What happen if appA produced output when appB is still busy processi