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
being forced to execute before the
[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
--
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
[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