if I call fork() with:
switch(pid = fork())
I know that when 0 is returned it means success for a child being created, and you do
whatever you want the child to do, and then _exit(0);
When greater than 0 is returned, I'm under the understanding that the parent is getting
the child's pid. But what happens then? Is the child still created, or is it an error and the
child isn't created, or what?
I guess I'm just confused as how there can be 2 successes on a fork() or how i handle the > 0
one.
Email, if possible. Thanx.
-Tony
---------------------------------------------------------------------------
Anthony J. Biacco Network Administrator/Engineer
.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-.
"The only way to predict the future, is to invent it."
.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-.
http://cygnus.ncohafmuta.com/
---------------------------------------------------------------------------