Sascha Retzki wrote:
POSIX-fork() copies data and bss segmets, child process doesn't share
data with it's parent.
I thought it does share the segments. And I think I saw this behaviour on Linux
and some BSDs.
Maybe my minds fools me again
Fork copies memory, see man pages or google for
it. When fork() occurs, child process inherits
the exact copy of parents memory at the time of
fork. So child will see all changes and settings,
you have done _befor_ fork. You may take this
behavior for sharing memory.
--
Victor