% % This file was automatically produced at Feb 27 2003, 22:51:56 by % c2latex fork-pseudocode.c % \expandafter\ifx\csname indentation\endcsname\relax% \newlength{\indentation}\fi \setlength{\indentation}{0.5em} \begin{flushleft} {\bf if} ( ( pid = fork() ) $<$ 0 )\mbox{}\\ \hspace*{10\indentation}fork\_error has happened\mbox{}\\ {\bf else} {\bf if} ( pid == 0 ) \hfill{$/\ast$\it{} I am the child $\ast/$}\mbox{}\\ \hspace*{10\indentation}{\bf do} things the child process should {\bf do}\mbox{}\\ {\bf else} \hfill{$/\ast$\it{} I am the parent $\ast/$}\mbox{}\\ \hspace*{10\indentation}{\bf do} things the parent should {\bf do}\mbox{}\\ \end{flushleft}