Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove blank line
  • Loading branch information
jessecogollo committed Jun 21, 2019
commit 41572de2f4e680cd9be63cba8ab7dc38c9ba5d54
6 changes: 3 additions & 3 deletions doc/api/cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -396,11 +396,11 @@ if (cluster.isMaster) {
}

cluster.on('fork', (worker) => {
console.log('worker is dead:', worker.isDead());
console.log('worker is dead?:', worker.isDead());
});

cluster.on('exit', (worker, code, signal) => {
console.log('worker is dead:', worker.isDead());
console.log('worker is dead?:', worker.isDead());
});

} else {
Expand All @@ -411,9 +411,9 @@ if (cluster.isMaster) {
res.end(`Current process\n ${process.pid}`);
process.kill(process.pid);
}).listen(8000);

// Make http://localhost:8000 to ckeck isDead method.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: typo

Suggested change
// Make http://localhost:8000 to ckeck isDead method.
// Make http://localhost:8000 to check isDead method.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Make" means "Make a connection to" here?

Suggested change
// Make http://localhost:8000 to ckeck isDead method.
// Connect to http://localhost:8000 to check isDead().

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Trott and @trivikr typo is fixed. Let me know other comment 😉

}

```

### worker.kill([signal='SIGTERM'])
Expand Down