Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/usr.sbin/rpc.lockd
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 <thorpej%wasabisystems.com@localhost>
Home |
Main Index |
Thread Index |
Old Index