On Tue, Aug 17, 2010 at 09:39:06AM +0000, Bruce Cran wrote:
> Author: brucec
> Date: Tue Aug 17 09:39:06 2010
> New Revision: 211417
> URL: http://svn.freebsd.org/changeset/base/211417
> 
> Log:
>   To restart, sysinstall calls execl. Since it will create a new process, we
execl(3) does not create new process, it changes the executed program of the 
existing process. In particular, the pid is left unchanged.

>   can't check to see if sysinstall is running as init just by checking if the
>   PID is 0. Introduce a new option that sets the RunningAsInit flag, and 
> update
init pid is 1.

>   the code to check RunningAsInit intstead of getpid().
>   
>   PR: bin/38854
>   Submitted by:       Peter Sedeffow <peter at trumanbrewery.com>
>   Approved by:        rrs (mentor)
>   MFC after:  1 month

Attachment: pgpYWUZ4xjP1T.pgp
Description: PGP signature

Reply via email to