aboutsummaryrefslogtreecommitdiff
path: root/doc/api/child_process.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/child_process.md')
-rw-r--r--doc/api/child_process.md7
1 files changed, 1 insertions, 6 deletions
diff --git a/doc/api/child_process.md b/doc/api/child_process.md
index e15829ce3f..5b2b16f253 100644
--- a/doc/api/child_process.md
+++ b/doc/api/child_process.md
@@ -642,8 +642,6 @@ pipes between the parent and child. The value is one of the following:
words, stdin, stdout, and stderr) a pipe is created. For fd 3 and up, the
default is `'ignore'`.
-Example:
-
```js
const { spawn } = require('child_process');
@@ -1060,8 +1058,7 @@ See kill(2) for reference.
Also note: on Linux, child processes of child processes will not be terminated
when attempting to kill their parent. This is likely to happen when running a
-new process in a shell or with use of the `shell` option of `ChildProcess`, such
-as in this example:
+new process in a shell or with use of the `shell` option of `ChildProcess`:
```js
'use strict';
@@ -1105,8 +1102,6 @@ added: v0.1.90
Returns the process identifier (PID) of the child process.
-Example:
-
```js
const { spawn } = require('child_process');
const grep = spawn('grep', ['ssh']);