alexscheelmeyer/node-phantom — pull request #49 by arunoda (2013-05-21 04:41:41+00:00)
Title: expose phantomjs child process

I had to get phantomjs child_process's pid for some monitoring purpose. But it is not exposed.
So I exposed it. see example below

phantom.create(function(error,ph){
assert.ok(ph._phantom.constructor.toString().match('function ChildProcess()'));
assert.ok(ph._phantom.pid > 0);
ph.exit();
});