Doh! Stupid Programming Mistakes <humor>
smorrey at gmail.com
Thu Oct 19 11:55:16 MDT 2006
So what's the total number assuming infinite "allowed" processes, that
this stinker managed to spawn?
On 10/19/06, Doran Barton <fozz at iodynamics.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Doran Barton wrote:
> > The first child (x=0) will fork() 10 times just like the parent. The second
> > child (x=1) will fork() 9 times. And so on. And each child will be forking
> > more processes as well.
> Argh. I should have taken that Coke Zero a little slower. I was wrong. The
> first child process will fork after x is incremented and therefore will fork
> 9 more times. Bleh.
> - --
> fozz at iodynamics.com is Doran L. Barton, president/CTO, Iodynamics LLC
> Iodynamics: IT and Web services by Linux/Open Source specialists
> "We build bodies that last a lifetime."
> -- Seen in a fitness club ad
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
> -----END PGP SIGNATURE-----
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
More information about the PLUG