fixed error in example

process.pid is not a function