Re: pipe blocking semantics

1998-10-09 Thread Glynn Clements
[EMAIL PROTECTED] wrote: > I've been looking at this small program which performs an "ls | wc", > trying to work out how the blocking semantics works. > > I understand that fork() has resulted in two identical processes being > run simultaneously but I can't work out how the parent process is >

RE: pipe blocking semantics

1998-10-09 Thread subbaraom
-- From: [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]] Sent: Friday, October 09, 1998 12:02 PM To: [EMAIL PROTECTED] Subject: pipe blocking semantics I've been looking at this small program which performs an "ls | wc", trying to work out how the blocking semantics works. I understand

Re: pipe blocking semantics

1998-10-09 Thread Henrik Nordstrom
[EMAIL PROTECTED] wrote: > After the fork(), are there two separate copies of pfd[] ? Yes. Fork duplicates the entire process, including any open filedescriptors. --- Henrik Nordström