in reply to Re: end "system"
in thread end "system"

fork returns the child's PID in the parent process, and when the child process execs, the PID doesn't change.