svn commit: r211417 - head/usr.sbin/sysinstall

Kostik Belousov kostikbel at
Tue Aug 17 10:48:57 UTC 2010

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:
> 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>
>   Approved by:	rrs (mentor)
>   MFC after:	1 month
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url :

More information about the svn-src-all mailing list