Use __getpid not getpid.