Subject: Re: fork() freeze the system
To: grifo <grifo3000@interfree.it>
From: Bill Studenmund <wrstuden@netbsd.org>
List: current-users
Date: 06/10/2004 13:11:58
--Dzs2zDY0zgkG72+7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jun 10, 2004 at 03:16:40PM +0200, grifo wrote:
> hello,
> today a friend of mine tried the following code on my NetBSD:
>=20
> int main()
> {
> 	while (1)=20
> 	   fork();
> }
>=20
> well, we were wondering why if launched from tty's the operating
> systems blocks the program saying: "proc table is full, please=20
> increase kern.maxproc", while when run from XFree86 it freeze
> the system and need to be rebooted "phisically".

Because when it's run from XFree86, it's run as root. And root's supposed=
=20
to know better than to do this.

Take care,

Bill

--Dzs2zDY0zgkG72+7
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQFAyMCOWz+3JHUci9cRAs5GAJ0UixhmlwTo09OX+31j29wUsgesgACeOJfx
9+5CA6xgkYSmHUcw17Ahnlw=
=6gI4
-----END PGP SIGNATURE-----

--Dzs2zDY0zgkG72+7--