Skip to content

Commit 5b73486

Browse files
juanarbolTrott
authored andcommitted
fixup
1 parent 2cfd3f4 commit 5b73486

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

doc/api/child_process.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,16 +1403,9 @@ const { spawn } = require('child_process');
14031403

14041404
const subprocess = spawn('ls');
14051405

1406-
const ioStdout = subprocess.stdio[1];
1407-
1408-
// This is the same of listening to ioStdout data event
14091406
subprocess.stdout.on('data', (data) => {
14101407
console.log(`Received chunk ${data}`);
14111408
});
1412-
1413-
ioStdout.on('data', (data) => {
1414-
console.log(`Received chunk ${data}`);
1415-
});
14161409
```
14171410

14181411
### subprocess.unref()

0 commit comments

Comments
 (0)