From owner-freebsd-current Thu Jul 1 15:26:54 1999 Delivered-To: freebsd-current@freebsd.org Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (Postfix) with ESMTP id C65E014A09 for ; Thu, 1 Jul 1999 15:26:52 -0700 (PDT) (envelope-from julian@whistle.com) Received: from current1.whistle.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.9.1a/8.9.1) with SMTP id PAA92822 for ; Thu, 1 Jul 1999 15:26:51 -0700 (PDT) Date: Thu, 1 Jul 1999 15:26:49 -0700 (PDT) From: Julian Elischer To: current@freebsd.org Subject: Rfork man page entry & reality. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The Rfork man page says: RFMEM If set, the kernel will force sharing of the entire ad- dress space. The child will then inherit all the shared segments the parent process owns. Other segment types will be unaffected. Subsequent forks by the parent will then propagate the shared data and bss between children. The stack segment is always split. May be set only with RFPROC. However the code says: if (flags & RFMEM) { p2->p_vmspace = p1->p_vmspace; p1->p_vmspace->vm_refcnt++; } My guess is that the man page should be changed to say: RFMEM If set, the kernel will force sharing of the entire ad- dress space. The child will then inherit all the memory segments the parent process owns. This is the basis of some thread models. May be set only with RFPROC. Any better suggestions of wording will be apreciated.. I'll check in a change of whatever sounds best after a day or so.. julian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message