Re: [HELP] UNEXPECTED result on MontaVista Linux
From: David Schwartz (davids_at_webmaster.com)
Date: Fri, 2 Sep 2005 14:48:27 -0700
"kevin" <firstname.lastname@example.org> wrote in message
Your code contains many ommissions that likely hide the error. Present
the smallest, complete, compilable example of the problem you are
1) Call _exit in one side of the fork and exit in the other.
2) Make sure the child's code doesn't run off the end into the parent or
vice-versa. Best way is usually to call _exit in the child.
3) Memory changes made after the call to fork are not shared.