File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 909909\item Note that you have to use macros from the previous slide to get the
910910child's return value out of the status information.
911911\item \label {WAITPID } Example: \example {wait/wait.c}
912- \item \label {SPAWN } Creating new process with \texttt {fork } and replacing the
913- process address space etc. with a new one after \texttt {exec } has been done is
914- expensive and has other problems. To make kernel create new process directly
915- from executable \texttt {posix\_ spawn } can be used. The new process can be waited
916- on with \texttt {waitpid } etc. just like in the case of \texttt {fork }.
917- Example: \example {exec/spawn.c}
912+ \item \label {SPAWN } Alternative for the \texttt {fork }/\texttt {exec } combination
913+ can be the \texttt {posix\_ spawn } function. The new process using this function
914+ can be waited on with \texttt {waitpid } etc. just like in the case of
915+ \texttt {fork }. Example: \example {exec/spawn.c}
918916\end {itemize }
919917
920918% %%%%
You can’t perform that action at this time.
0 commit comments