Re: [HELP] UNEXPECTED result on MontaVista Linux

From: David Schwartz (davids_at_webmaster.com)
Date: 09/02/05


Date: Fri, 2 Sep 2005 14:48:27 -0700


"kevin" <kthkevin@gmail.com> wrote in message
news:1125665207.118659.135620@f14g2000cwb.googlegroups.com...

[snip]

    Your code contains many ommissions that likely hide the error. Present
the smallest, complete, compilable example of the problem you are
experiencing.

    Tips:

    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.

    DS



Relevant Pages