ariya/phantomjs — pull request #338 by JamesMGreene (2012-11-06 18:00:06+00:00)
Title: Exposing the Process ID (PID) via the System module.

`require('system').pid` should return your PhantomJS instance's Process ID.

http://code.google.com/p/phantomjs/issues/detail?id=769