fixed error in example

process.pid is not a function
Merge pull request #43 from trevorah/patch-2

fixed error in example