Closed vincentbernat closed 6 years ago
At this point of the program, we are in the child process and pid variable is always 0. Therefore, the call to getpid() is needed to get the actual value.
pid
getpid()
At this point of the program, we are in the child process and
pid
variable is always 0. Therefore, the call togetpid()
is needed to get the actual value.