Subject: Re: CVS commit: src/usr.sbin/rpc.lockd
To: Christos Zoulas <>
From: Jason R Thorpe <>
List: source-changes
Date: 03/14/2003 08:07:06
On Fri, Mar 14, 2003 at 03:24:27PM +0000, Christos Zoulas wrote:

 > Is there a reason for that change? Using _exit() avoids doing the
 > stdio cleanup and the atexit calls.  It is recommended for vfork()
 > where the address space of the parent and the child are shared
 > after the vfork() and before the exec(). There is no reason to do
 > it for fork(), right?

Yes, IIRC, it is also recommended for normal fork().

Consider the parent does an atexit() to clean up a pidfile it creates.
The child does not write a new pidfile.  When the child exits, you don't
want it to delete the parent's pidfile.

        -- Jason R. Thorpe <>