Doh! Stupid Programming Mistakes <humor>
fozz at iodynamics.com
Thu Oct 19 11:53:36 MDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
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-----
More information about the PLUG