Return pid of a newly created process.