Sascha Retzki wrote:

Hello list,

/sys/src/ape/lib/ap/plan9/fork.c does an _RFORK(RFENVG|RFFDG|RFPROC);

Why not RFMEM? Imho on POSIX-fork(), the child shares the address-space with the parents.
It is not that I really care myself, #include <lib9.h> fixes a lot of things,;) 
,but I fear programmes which rely on that may not work. Is there a specific reason 
fork.c:fork() does not fork with RFMEM?


Mfg, Sascha
rfork (2):
``RFMEM --- If set, the child and the parent will share data and bss segments. Otherwise, the child inherits a copy of those segments. Other segment types, in particular stack segments, will be unaffected. May be set only with RFPROC.''

POSIX-fork() copies data and bss segmets, child process doesn't share data with it's parent. There are POSIX-threads, SYSV-IPC to share memory.
--
Victor

Reply via email to