Duplicate of Regarding getpid function in the C-C++ forum. Thread closed.