File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 883
883
\item \texttt {< -1 } \dots {} wait for any child in the process group of
884
884
\texttt {abs(pid) }
885
885
\end {itemize }
886
- \item There are also \funnm {wait3} and \funnm {wait4} calls. These are more
886
+ \item There are also \texttt {wait3 } and \texttt {wait4 } calls. These are more
887
887
generic versions, also allowing to gather resource utilization statistics from
888
888
exited child.
889
889
\item A parent should always call one of the wait functions otherwise the system
890
890
will accumulate \emph {zombies } -- terminated processes that occupy process table
891
891
slots only to be waited for by their parents. Zombies could eventually exhaust
892
892
all the system memory. Note that if the parent exits, its children are adopted
893
- by the \texttt {init } process that will call \funnm {wait} on such processes.
894
- However, you should always use wait for children even if you know the parent
895
- will exit soon.
893
+ by the \texttt {init } process that will call \texttt {wait } on such processes.
894
+ However, you should always use \texttt { wait } for children even if you know the
895
+ parent will exit soon.
896
896
\item Actually, you could notify the system that the program will not wait for
897
897
its children in which case such zombies will not accumulate. See page
898
898
\pageref {IGNORE_SIG_CHLD }.
You can’t perform that action at this time.
0 commit comments