summaryrefslogtreecommitdiff
path: root/doc/api/cluster.md
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-04-21 17:38:31 +0300
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-04-25 00:06:00 +0300
commite2c3e4727d5899a709f5c421e128a4af2ef626f3 (patch)
treeda562d9848f3b66dddd2f244972a5cbc672fda20 /doc/api/cluster.md
parentb6d293d2158c66a3edbb86c0c43b4c51af3484f7 (diff)
downloadandroid-node-v8-e2c3e4727d5899a709f5c421e128a4af2ef626f3.tar.gz
android-node-v8-e2c3e4727d5899a709f5c421e128a4af2ef626f3.tar.bz2
android-node-v8-e2c3e4727d5899a709f5c421e128a4af2ef626f3.zip
doc: conform to rules for eslint-plugin-markdown
PR-URL: https://github.com/nodejs/node/pull/12563 Refs: https://github.com/nodejs/node/pull/12557#issuecomment-296015032 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Diffstat (limited to 'doc/api/cluster.md')
-rw-r--r--doc/api/cluster.md13
1 files changed, 8 insertions, 5 deletions
diff --git a/doc/api/cluster.md b/doc/api/cluster.md
index 0774938766..069f9f2003 100644
--- a/doc/api/cluster.md
+++ b/doc/api/cluster.md
@@ -523,11 +523,14 @@ When any of the workers die the cluster module will emit the `'exit'` event.
This can be used to restart the worker by calling `.fork()` again.
```js
-cluster.on('exit', (worker, code, signal) => {
- console.log('worker %d died (%s). restarting...',
- worker.process.pid, signal || code);
- cluster.fork();
-});
+cluster.on(
+ 'exit',
+ (worker, code, signal) => {
+ console.log('worker %d died (%s). restarting...',
+ worker.process.pid, signal || code);
+ cluster.fork();
+ }
+);
```
See [child_process event: 'exit'][].