Skip to content

Commit 5ced4b5

Browse files
committed
More on creating processes.
1 parent bae8424 commit 5ced4b5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

proc.tex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,10 @@
999999
\item However, in \texttt{bash}, all processes in a pipeline are direct children
10001000
of the shell itself, i.e. \texttt{bash} calls \funnm{fork} that many times as is
10011001
the number of programs in the pipeline. Before the prompt is printed, it waits
1002-
for all processes it directly created to finish.
1002+
for all processes it directly created to finish. Another advantage is that
1003+
since a parent can get exit status for its direct children only, forking all
1004+
processes in a pipeline makes it convenient to provide the \texttt{PIPESTATUS}
1005+
array variable to the user.
10031006
\end{itemize}
10041007

10051008
%%%%%

0 commit comments

Comments
 (0)