From owner-freebsd-hackers Thu Aug 26 19:21:25 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp05.primenet.com (smtp05.primenet.com [206.165.6.135]) by hub.freebsd.org (Postfix) with ESMTP id 097FB14BE7 for ; Thu, 26 Aug 1999 19:21:23 -0700 (PDT) (envelope-from tlambert@usr06.primenet.com) Received: (from daemon@localhost) by smtp05.primenet.com (8.9.1/8.9.1) id TAA216068; Thu, 26 Aug 1999 19:20:59 -0700 Received: from usr06.primenet.com(206.165.6.206) via SMTP by smtp05.primenet.com, id smtpdzLTf7a; Thu Aug 26 19:20:54 1999 Received: (from tlambert@localhost) by usr06.primenet.com (8.8.5/8.8.5) id TAA23247; Thu, 26 Aug 1999 19:20:52 -0700 (MST) From: Terry Lambert Message-Id: <199908270220.TAA23247@usr06.primenet.com> Subject: Re: undocumented vfork behaviour? To: gallatin@cs.duke.edu (Andrew Gallatin) Date: Fri, 27 Aug 1999 02:20:52 +0000 (GMT) Cc: freebsd-hackers@FreeBSD.ORG In-Reply-To: <14277.18939.326895.354112@grasshopper.cs.duke.edu> from "Andrew Gallatin" at Aug 26, 99 10:40:29 am X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I'm working on getting linux/alpha compatability going in > FreeBSD/alpha & I stumbled over some odd fork behaviour that I was > hoping somebody could shed some light on. > > Specifically, when a linux/alpha process forks, the child's return > value is the parent's pid rather than zero. I tracked this behaviour > down to the child's code path in the alpha's cpu_fork(): This is a bug. For other bugs in vfork(), look at the fact that the vacation program does not correctly deal with messages. Before Julian argue's that vacation is in error, note that it used to work fine until 3.1. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message