Skip to content

Commit 5787f43

Browse files
author
Vladimir Kotal
committed
add spawn ref
1 parent 6d760d7 commit 5787f43

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

proc.tex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,8 @@
423423
around the problem that the child address space was usually rewritten on
424424
subsequent \texttt{exec}. This problem was solved via already mentioned
425425
copy-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
%%%%%
@@ -875,8 +877,8 @@
875877
\item Note that you have to use macros from the previous slide to get the
876878
child'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
880882
expensive and has other problems. To make kernel create new process directly
881883
from executable \texttt{posix\_spawn} can be used.
882884
Example: \example{exec/spawn.c}

0 commit comments

Comments
 (0)