Why doesn't the fork() system call return the process ID of the parent to the child and return zero to parent?
pid_t pid;
pid = fork();
In this section, the return code for the fork() is zero for the child and the (non zero) process id of the child is the returned to the parent.
How can i find out the PID of the parent from the child?