In article <48ae7b6a$0$6019$ba620dc5@text.nova.planet.nl>,
Erik van der Kouwe
wrote:
>This suggests, by the way, that it might work if the data and stack
>segments are separate. There may be a good chance that the data segment
>does not get written to by the child.
The data segment and the stack segment have to be the same (or you need a
C compiler that is segment-aware).
The parent and the child receive different reply messages, so the child's
data segment is already dirty before fork even returns.
--
That was it. Done. The faulty Monk was turned out into the desert where it
could believe what it liked, including the idea that it had been hard done
by. It was allowed to keep its horse, since horses were so cheap to make.
-- Douglas Adams in Dirk Gently's Holistic Detective Agency