diff options
author | Justin Plock <jplock@gmail.com> | 2012-07-01 12:35:51 -0300 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-07-09 15:57:44 +0200 |
commit | fba1e48fae094b3a54aee2228cbfe3e8c505a12c (patch) | |
tree | c28d562ba4e6acac974c597e94b048b808791072 /doc/api/cluster.markdown | |
parent | 63c2391984b74bf04bc7f68e346e857ca9d63329 (diff) | |
download | node-new-fba1e48fae094b3a54aee2228cbfe3e8c505a12c.tar.gz |
doc: cluster: worker.pid is now worker.process.pid
Diffstat (limited to 'doc/api/cluster.markdown')
-rw-r--r-- | doc/api/cluster.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/cluster.markdown b/doc/api/cluster.markdown index 059037bc74..2d48f24751 100644 --- a/doc/api/cluster.markdown +++ b/doc/api/cluster.markdown @@ -20,7 +20,7 @@ all share server ports. } cluster.on('exit', function(worker, code, signal) { - console.log('worker ' + worker.pid + ' died'); + console.log('worker ' + worker.process.pid + ' died'); }); } else { // Workers can share any TCP connection @@ -201,7 +201,7 @@ This can be used to restart the worker by calling `fork()` again. cluster.on('exit', function(worker, code, signal) { var exitCode = worker.process.exitCode; - console.log('worker ' + worker.pid + ' died ('+exitCode+'). restarting...'); + console.log('worker ' + worker.process.pid + ' died ('+exitCode+'). restarting...'); cluster.fork(); }); |