[cs631apue] Another question on waiting pipeline.

zding4 zding4 at stevens.edu
Tue Dec 9 02:52:49 EST 2014

Hi everyone,
Another question about pipeline.
for cmds like

$ cmd1 | cmd2 | cmd3

Our sish should fork subprocesses for each 3 commands.
Let's say, at the beginning, sish process fork a process to exec cmd1.
Should it wait for cmd1 (waitpid) before cmd2 and cmd3?


More information about the cs631apue mailing list