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 883883 \item \texttt {< -1 } \dots {} wait for any child in the process group of
884884 \texttt {abs(pid) }
885885 \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
887887generic versions, also allowing to gather resource utilization statistics from
888888exited child.
889889\item A parent should always call one of the wait functions otherwise the system
890890will accumulate \emph {zombies } -- terminated processes that occupy process table
891891slots only to be waited for by their parents. Zombies could eventually exhaust
892892all 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.
896896\item Actually, you could notify the system that the program will not wait for
897897its children in which case such zombies will not accumulate. See page
898898\pageref {IGNORE_SIG_CHLD }.
You can’t perform that action at this time.
0 commit comments