getpid() always returns the process ID of the calling thread/process.