Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Feb 1998 19:14:40 +0100
From:      Eivind Eklund <eivind@yes.no>
To:        Andrzej Bialecki <abial@nask.pl>
Cc:        current@FreeBSD.ORG
Subject:   Re: Custom init(8)
Message-ID:  <19980204191440.01035@follo.net>
In-Reply-To: <Pine.NEB.3.95.980204175705.18224A-100000@korin.warman.org.pl>; from Andrzej Bialecki on Wed, Feb 04, 1998 at 06:04:29PM %2B0100
References:  <199802041649.IAA02912@austin.polstra.com> <Pine.NEB.3.95.980204175705.18224A-100000@korin.warman.org.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Feb 04, 1998 at 06:04:29PM +0100, Andrzej Bialecki wrote:
> Sorry, but this really doesn't help me to know how _the simplest_ possible
> init(8) could look like...

You'll have to reap any zombie process in the system and not exit, and
that's about it.

man waitpid for details on repeaing children.

Of course, you might want to start a shell or do something else
useful...

BTW: sysinstall (from the install floppy) is another example of an
application that run as init.

Eivind.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980204191440.01035>