Skip to content

Commit b454734

Browse files
cjihrigevanlucas
authored andcommitted
doc: fix detached child stdio example
The example changed by this commit uses ['ignore'] where 'ignore' is intended. Fixes: #7269 PR-URL: #7540 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 657fd7a commit b454734

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎doc/api/child_process.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ const spawn = require('child_process').spawn;
430430

431431
constchild=spawn(process.argv[0], ['child_program.js'], {
432432
detached:true,
433-
stdio:['ignore']
433+
stdio:'ignore'
434434
});
435435

436436
child.unref();

0 commit comments

Comments
 (0)