From owner-freebsd-current Thu Apr 18 08:27:27 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA10948 for current-outgoing; Thu, 18 Apr 1996 08:27:27 -0700 (PDT) Received: from xi.dorm.umd.edu (root@xi.dorm.umd.edu [129.2.152.45]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id IAA10943 for ; Thu, 18 Apr 1996 08:27:24 -0700 (PDT) Received: from localhost (smpatel@localhost [127.0.0.1]) by xi.dorm.umd.edu (8.7.5/8.6.12) with SMTP id LAA16101 for ; Thu, 18 Apr 1996 11:27:15 -0400 (EDT) Date: Thu, 18 Apr 1996 11:27:14 -0400 (EDT) From: Sujal Patel X-Sender: smpatel@xi.dorm.umd.edu To: current@freebsd.org Subject: Changes for vfork() Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In the recent thread about rfork(), we talked about the no longer useful vfork() syscall. According to the manpage for vfork(): This system call will be eliminated when proper system sharing mechanisms are implemented. Users should not depend on the memory sharing semantics of vfork(2) as it will, in that case, be made synonymous to fork(2). Since FreeBSD uses copy-on-write for the pages of processes that are forked, there is little or no purpose in having the vfork() syscall (and the man page even says it will be made synonymous to fork some day). As we sort of talked about, I think it's time to declare this an obsolete syscall and perhaps move the vfork() call in libc to libcompat, libc/compat-43, or libc/???? (I really don't know where it should go). Also, vfork() can now just point to fork(), which will clean up some cruft in kern_fork.c Comments please? Sujal