Skip to content

Commit

Permalink
doc: fix detached child stdio example
Browse files Browse the repository at this point in the history
The example changed by this commit uses ['ignore'] where
'ignore' is intended.

Fixes: #7269
PR-URL: #7540
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
cjihrig authored and Myles Borins committed Jul 14, 2016
1 parent 8273824 commit 186af29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/child_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ const spawn = require('child_process').spawn;

const child = spawn(process.argv[0], ['child_program.js'], {
detached: true,
stdio: ['ignore']
stdio: 'ignore'
});

child.unref();
Expand Down

0 comments on commit 186af29

Please sign in to comment.