File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 423423around the problem that the child address space was usually rewritten on
424424subsequent \texttt {exec }. This problem was solved via already mentioned
425425copy-on-write mechanism. See \example {fork/vfork.c} on how it works.
426+ \item The problems of \texttt {vfork } are largely solved by
427+ \texttt {posix\_ spawn }. See page \pageref {SPAWN }.
426428\end {itemize }
427429
428430% %%%%
875877\item Note that you have to use macros from the previous slide to get the
876878child's return value out of the status information.
877879\item \label {WAITPID } Example: \example {wait/wait.c}
878- \item Creating new process with \texttt {fork } and replacing the process
879- address space etc. with a new one after \texttt {exec } has been done is
880+ \item \label { SPAWN } Creating new process with \texttt {fork } and replacing the
881+ process address space etc. with a new one after \texttt {exec } has been done is
880882expensive and has other problems. To make kernel create new process directly
881883from executable \texttt {posix\_ spawn } can be used.
882884Example: \example {exec/spawn.c}
You can’t perform that action at this time.
0 commit comments