From owner-cvs-usrbin Thu Apr 24 03:02:20 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA28004 for cvs-usrbin-outgoing; Thu, 24 Apr 1997 03:02:20 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA27999; Thu, 24 Apr 1997 03:02:12 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id TAA12833; Thu, 24 Apr 1997 19:59:41 +1000 Date: Thu, 24 Apr 1997 19:59:41 +1000 From: Bruce Evans Message-Id: <199704240959.TAA12833@godzilla.zeta.org.au> To: ache@FreeBSD.org, cvs-all@FreeBSD.org, CVS-committers@FreeBSD.org, cvs-usrbin@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/vacation vacation.c Sender: owner-cvs-usrbin@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > Modified: usr.bin/vacation vacation.c > Log: > Better fix: return vfork() again, but remove clobbering fclose() > and use _exit() instead of exit() I think it's better to use fork() except in programs that fork a lot. Even the simplest use: if ((pid = vfork()) == 0) execl(...); is not guaranteed to work (it depends on there being a stack frame and the compiler not doing anything unusual with it). Bruce