From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: Re: [9fans] APE fork() From: Charles Forsyth Date: Sat, 12 Aug 2006 20:54:05 +0100 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 9e30c474-ead1-11e9-9d60-3106f5b1d025 > I always thought vfork was introduced because > copy-on-write hadn't been invented yet. > > It's the only logical explanation. no, it was because they chose not to implement copy on write. it had been invented long before that. in fact, i found copy on write at least as easy to do for unix as the grunge required for vfork (and it was more generally useful). on some architectures you need to use copy on reference. their paging data structures might have made it more difficult, i suppose; they had them upside down compared to unix's requirements. vfork also was specified so that if you relied on the sharing except to implement a non-sharing fork, the effect was undefined.