Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
juanarbol authored and Trott committed Jul 20, 2019
1 parent 2cfd3f4 commit 5b73486
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions doc/api/child_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -1403,16 +1403,9 @@ const { spawn } = require('child_process');

const subprocess = spawn('ls');

const ioStdout = subprocess.stdio[1];

// This is the same of listening to ioStdout data event
subprocess.stdout.on('data', (data) => {
console.log(`Received chunk ${data}`);
});

ioStdout.on('data', (data) => {
console.log(`Received chunk ${data}`);
});
```

### subprocess.unref()
Expand Down

0 comments on commit 5b73486

Please sign in to comment.