Skip to content

Commit de005a0

Browse files
author
Vladimir Kotal
committed
mention posix_spawn
1 parent ef23991 commit de005a0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

proc.tex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,11 @@
873873
\item Note that you have to use macros from the previous slide to get the
874874
child's return value out of the status information.
875875
\item \label{WAITPID} Example: \example{wait/wait.c}
876+
\item Creating new process with \texttt{fork} and replacing the process
877+
address space etc. with a new one after \texttt{exec} has been done is
878+
expensive and has other problems. To make kernel create new process directly
879+
from executable \texttt{posix\_spawn} can be used.
880+
Example: \example{exec/spawn.c}
876881
\end{itemize}
877882

878883
%%%%%

0 commit comments

Comments
 (0)